eventstore-client-c/buffer.h

21 lines
363 B
C
Raw Normal View History

2018-03-19 06:08:57 +00:00
//
// Created by nicol on 2018-03-18.
//
#ifndef ESC_BUFFER_H
#define ESC_BUFFER_H
#include <stdint.h>
struct st_buffer {
uint32_t size;
uint8_t* data;
};
typedef struct st_buffer buffer_t;
const buffer_t buffer_create(uint32_t size);
const buffer_t buffer_from(uint8_t* data, uint32_t size);
void buffer_free(buffer_t buffer);
#endif //ESC_BUFFER_H