src/asn1_helper.h
author Krista Bennett <krista@pep-project.org>
Fri, 01 Jun 2018 10:30:19 +0200
branchENGINE-254
changeset 2723 7194b9c8599d
parent 1513 e7f7e42385b5
permissions -rw-r--r--
close branch
vb@1513
     1
// This file is under GNU General Public License 3.0
vb@1513
     2
// see LICENSE.txt
vb@1513
     3
vb@1116
     4
#pragma once
vb@1116
     5
vb@1116
     6
#include <string.h>
vb@1116
     7
vb@1116
     8
typedef struct growing_buf {
vb@1116
     9
    char *data;
vb@1116
    10
    size_t size;
vb@1116
    11
} growing_buf_t;
vb@1116
    12
vb@1116
    13
growing_buf_t *new_growing_buf(void);
vb@1116
    14
void free_growing_buf(growing_buf_t *buf);
vb@1116
    15
int consume_bytes(const void *src, size_t size, growing_buf_t *dst);
vb@1116
    16