src/asn1_helper.h
author Volker Birk <vb@pep.foundation>
Thu, 01 Sep 2016 22:47:08 +0200
branchkeysync
changeset 1116 c9a03f2423c1
child 1513 e7f7e42385b5
permissions -rw-r--r--
decode_sync_msg() for debugging
vb@1116
     1
#pragma once
vb@1116
     2
vb@1116
     3
#include <string.h>
vb@1116
     4
vb@1116
     5
typedef struct growing_buf {
vb@1116
     6
    char *data;
vb@1116
     7
    size_t size;
vb@1116
     8
} growing_buf_t;
vb@1116
     9
vb@1116
    10
growing_buf_t *new_growing_buf(void);
vb@1116
    11
void free_growing_buf(growing_buf_t *buf);
vb@1116
    12
int consume_bytes(const void *src, size_t size, growing_buf_t *dst);
vb@1116
    13