File: buf.h

package info (click to toggle)
poc-streamer 0.4.2-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,000 kB
  • sloc: ansic: 8,782; makefile: 307; ruby: 152; perl: 135; yacc: 115; lex: 36; sh: 30
file content (22 lines) | stat: -rw-r--r-- 352 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*C
  (c) 2005 bl0rg.net
**/

#ifndef BUF_H__
#define BUF_H__

typedef struct buf_s {
  unsigned char *data;
  unsigned long len;
  unsigned long size;
} buf_t;

int buf_alloc(buf_t *buf, unsigned long size);
int buf_grow(buf_t *buf);
int buf_append(buf_t *buf, void *data, unsigned long len);
void buf_free(buf_t *buf);

#endif /* BUF_H__ */

/*C
**/