comparison buffer.h @ 925:bae0b34bc059 pam

Better PAM through recursion
author Matt Johnston <matt@ucc.asn.au>
date Wed, 12 Mar 2014 23:40:02 +0800
parents ac2158e3e403
children 2fa71c3b2827
comparison
equal deleted inserted replaced
923:25b7ed9fe854 925:bae0b34bc059
50 void buf_incrpos(buffer* buf, int incr); /* -ve is ok, to go backwards */ 50 void buf_incrpos(buffer* buf, int incr); /* -ve is ok, to go backwards */
51 void buf_incrwritepos(buffer* buf, unsigned int incr); 51 void buf_incrwritepos(buffer* buf, unsigned int incr);
52 unsigned char buf_getbyte(buffer* buf); 52 unsigned char buf_getbyte(buffer* buf);
53 unsigned char buf_getbool(buffer* buf); 53 unsigned char buf_getbool(buffer* buf);
54 void buf_putbyte(buffer* buf, unsigned char val); 54 void buf_putbyte(buffer* buf, unsigned char val);
55 void buf_putbool(buffer* buf, unsigned int val);
55 unsigned char* buf_getptr(buffer* buf, unsigned int len); 56 unsigned char* buf_getptr(buffer* buf, unsigned int len);
56 unsigned char* buf_getwriteptr(buffer* buf, unsigned int len); 57 unsigned char* buf_getwriteptr(buffer* buf, unsigned int len);
57 unsigned char* buf_getstring(buffer* buf, unsigned int *retlen); 58 unsigned char* buf_getstring(buffer* buf, unsigned int *retlen);
58 buffer * buf_getstringbuf(buffer *buf); 59 buffer * buf_getstringbuf(buffer *buf);
59 void buf_eatstring(buffer *buf); 60 void buf_eatstring(buffer *buf);