comparison src/dmgrowbuf.h @ 1533:907160399b24

Cosmetic.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 12 May 2018 03:26:14 +0300
parents 260bf529a8f2
children 383ca5f6e78b
comparison
equal deleted inserted replaced
1532:74febc66d90d 1533:907160399b24
16 typedef struct 16 typedef struct
17 { 17 {
18 Uint8 *data, *adata; 18 Uint8 *data, *adata;
19 size_t len, size, mingrow, offs; 19 size_t len, size, mingrow, offs;
20 BOOL allocated; 20 BOOL allocated;
21
21 int nstack; 22 int nstack;
22 struct { size_t offs, len; } stack[32]; 23 struct { size_t offs, len; } stack[32];
23 } DMGrowBuf; 24 } DMGrowBuf;
24 25
25 26
37 BOOL dmGrowBufPutU16BE(DMGrowBuf *buf, const Uint16 val); 38 BOOL dmGrowBufPutU16BE(DMGrowBuf *buf, const Uint16 val);
38 BOOL dmGrowBufPutU16LE(DMGrowBuf *buf, const Uint16 val); 39 BOOL dmGrowBufPutU16LE(DMGrowBuf *buf, const Uint16 val);
39 BOOL dmGrowBufPutU32BE(DMGrowBuf *buf, const Uint32 val); 40 BOOL dmGrowBufPutU32BE(DMGrowBuf *buf, const Uint32 val);
40 BOOL dmGrowBufPutU32LE(DMGrowBuf *buf, const Uint32 val); 41 BOOL dmGrowBufPutU32LE(DMGrowBuf *buf, const Uint32 val);
41 42
42 void dmGrowBufPush(DMGrowBuf *buf); 43 void dmGrowBufPush(DMGrowBuf *buf);
43 void dmGrowBufPop(DMGrowBuf *buf); 44 void dmGrowBufPop(DMGrowBuf *buf);
44 45
45 46
46 #ifdef __cplusplus 47 #ifdef __cplusplus
47 } 48 }
48 #endif 49 #endif