Mercurial > dropbear
comparison buffer.h @ 1754:064f5be2fc45
Add buf_decrpos()
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 24 Oct 2020 18:56:45 +0800 |
parents | d5cdc60db08e |
children | 8b4274d34fe8 |
comparison
equal
deleted
inserted
replaced
1753:7c0fcd19e492 | 1754:064f5be2fc45 |
---|---|
47 void buf_burn(const buffer* buf); | 47 void buf_burn(const buffer* buf); |
48 buffer* buf_newcopy(const buffer* buf); | 48 buffer* buf_newcopy(const buffer* buf); |
49 void buf_setlen(buffer* buf, unsigned int len); | 49 void buf_setlen(buffer* buf, unsigned int len); |
50 void buf_incrlen(buffer* buf, unsigned int incr); | 50 void buf_incrlen(buffer* buf, unsigned int incr); |
51 void buf_setpos(buffer* buf, unsigned int pos); | 51 void buf_setpos(buffer* buf, unsigned int pos); |
52 void buf_incrpos(buffer* buf, int incr); /* -ve is ok, to go backwards */ | 52 void buf_incrpos(buffer* buf, unsigned int incr); |
53 void buf_decrpos(buffer* buf, unsigned int decr); | |
53 void buf_incrwritepos(buffer* buf, unsigned int incr); | 54 void buf_incrwritepos(buffer* buf, unsigned int incr); |
54 unsigned char buf_getbyte(buffer* buf); | 55 unsigned char buf_getbyte(buffer* buf); |
55 unsigned char buf_getbool(buffer* buf); | 56 unsigned char buf_getbool(buffer* buf); |
56 void buf_putbyte(buffer* buf, unsigned char val); | 57 void buf_putbyte(buffer* buf, unsigned char val); |
57 unsigned char* buf_getptr(const buffer* buf, unsigned int len); | 58 unsigned char* buf_getptr(const buffer* buf, unsigned int len); |