comparison buffer.h @ 761:ac2158e3e403 ecc

ecc kind of works, needs fixing/testing
author Matt Johnston <matt@ucc.asn.au>
date Sun, 07 Apr 2013 01:36:42 +0800
parents f336d232fc63
children bae0b34bc059 deed0571cacc
comparison
equal deleted inserted replaced
760:f336d232fc63 761:ac2158e3e403
57 unsigned char* buf_getstring(buffer* buf, unsigned int *retlen); 57 unsigned char* buf_getstring(buffer* buf, unsigned int *retlen);
58 buffer * buf_getstringbuf(buffer *buf); 58 buffer * buf_getstringbuf(buffer *buf);
59 void buf_eatstring(buffer *buf); 59 void buf_eatstring(buffer *buf);
60 void buf_putint(buffer* buf, unsigned int val); 60 void buf_putint(buffer* buf, unsigned int val);
61 void buf_putstring(buffer* buf, const unsigned char* str, unsigned int len); 61 void buf_putstring(buffer* buf, const unsigned char* str, unsigned int len);
62 void buf_putstringbuf(buffer *buf, const buffer* buf_str); 62 void buf_putbufstring(buffer *buf, const buffer* buf_str);
63 void buf_putbytes(buffer *buf, const unsigned char *bytes, unsigned int len); 63 void buf_putbytes(buffer *buf, const unsigned char *bytes, unsigned int len);
64 void buf_putmpint(buffer* buf, mp_int * mp); 64 void buf_putmpint(buffer* buf, mp_int * mp);
65 int buf_getmpint(buffer* buf, mp_int* mp); 65 int buf_getmpint(buffer* buf, mp_int* mp);
66 unsigned int buf_getint(buffer* buf); 66 unsigned int buf_getint(buffer* buf);
67 67