You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/include/llarp/buffer.h

22 lines
388 B
C

#ifndef LLARP_BUFFER_H_
#define LLARP_BUFFER_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdlib.h>
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