eventstore-client-c/buffer.h
2018-03-18 23:08:57 -07:00

21 lines
363 B
C

//
// 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