1 #ifndef _SINGULAR_LIBTHREAD_BYTEBUFFER_H
2 #define _SINGULAR_LIBTHREAD_BYTEBUFFER_H
48 memcpy(
buf+pos,
p, n);
54 memcpy(
p,
buf+pos, n);
59 write_bytes((
char *)&value,
sizeof(
T));
63 read_bytes((
char *)&value,
sizeof(
T));
ByteBuf & operator=(const ByteBuf &other)
ByteBuf(const ByteBuf &other)
void write_bytes(char *p, size_t n)
void read_bytes(char *p, size_t n)
void free_space(size_t n, char *p)
char * allocate_space(size_t n)
int status int void size_t count
int status int void * buf