1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
lokinet/include/llarp/buffer.h
2018-01-29 09:27:24 -05:00

22 lines
386 B
C

#ifndef LLARP_BUFFER_H_
#define LLARP_BUFFER_H_
#include <stdbool.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct llarp_buffer_t {
char *base;
size_t sz;
char *cur;
} llarp_buffer_t;
size_t llarp_buffer_size_left(llarp_buffer_t *buff);
bool llarp_buffer_write(llarp_buffer_t *buff, const void *data, size_t sz);
#ifdef __cplusplus
}
#endif
#endif