Bug 1941128 - Turn off network.dns.native_https_query on Mac again
[gecko.git] / other-licenses / 7zstub / src / C / 7zBuf.h
blob5942d6e623a6edea761066086080e3692249e78a
1 /* 7zBuf.h -- Byte Buffer
2 2017-04-03 : Igor Pavlov : Public domain */
4 #ifndef __7Z_BUF_H
5 #define __7Z_BUF_H
7 #include "7zTypes.h"
9 EXTERN_C_BEGIN
11 typedef struct
13 Byte *data;
14 size_t size;
15 } CBuf;
17 void Buf_Init(CBuf *p);
18 int Buf_Create(CBuf *p, size_t size, ISzAllocPtr alloc);
19 void Buf_Free(CBuf *p, ISzAllocPtr alloc);
21 typedef struct
23 Byte *data;
24 size_t size;
25 size_t pos;
26 } CDynBuf;
28 void DynBuf_Construct(CDynBuf *p);
29 void DynBuf_SeekToBeg(CDynBuf *p);
30 int DynBuf_Write(CDynBuf *p, const Byte *buf, size_t size, ISzAllocPtr alloc);
31 void DynBuf_Free(CDynBuf *p, ISzAllocPtr alloc);
33 EXTERN_C_END
35 #endif