Don't udpate LastOverSpeedTick when using aqua_speed
[ryzomcore.git] / nel / 3rdparty / seven_zip / 7zBuf.h
blob81d1b5b646cadd987f590d9089064fb259aa654a
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