Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Side by Side Diff: third_party/lzma_sdk/7zBuf.h

Issue 1700453002: Update lzma_sdk sources to 15.14. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chromium modifications Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/lzma_sdk/7zArcIn.c ('k') | third_party/lzma_sdk/7zBuf.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 7zBuf.h -- Byte Buffer 1 /* 7zBuf.h -- Byte Buffer
2 2009-02-07 : Igor Pavlov : Public domain */ 2 2013-01-18 : Igor Pavlov : Public domain */
3 3
4 #ifndef __7Z_BUF_H 4 #ifndef __7Z_BUF_H
5 #define __7Z_BUF_H 5 #define __7Z_BUF_H
6 6
7 #include "Types.h" 7 #include "7zTypes.h"
8 8
9 #ifdef __cplusplus 9 EXTERN_C_BEGIN
10 extern "C" {
11 #endif
12 10
13 typedef struct 11 typedef struct
14 { 12 {
15 Byte *data; 13 Byte *data;
16 size_t size; 14 size_t size;
17 } CBuf; 15 } CBuf;
18 16
19 void Buf_Init(CBuf *p); 17 void Buf_Init(CBuf *p);
20 int Buf_Create(CBuf *p, size_t size, ISzAlloc *alloc); 18 int Buf_Create(CBuf *p, size_t size, ISzAlloc *alloc);
21 void Buf_Free(CBuf *p, ISzAlloc *alloc); 19 void Buf_Free(CBuf *p, ISzAlloc *alloc);
22 20
23 typedef struct 21 typedef struct
24 { 22 {
25 Byte *data; 23 Byte *data;
26 size_t size; 24 size_t size;
27 size_t pos; 25 size_t pos;
28 } CDynBuf; 26 } CDynBuf;
29 27
30 void DynBuf_Construct(CDynBuf *p); 28 void DynBuf_Construct(CDynBuf *p);
31 void DynBuf_SeekToBeg(CDynBuf *p); 29 void DynBuf_SeekToBeg(CDynBuf *p);
32 int DynBuf_Write(CDynBuf *p, const Byte *buf, size_t size, ISzAlloc *alloc); 30 int DynBuf_Write(CDynBuf *p, const Byte *buf, size_t size, ISzAlloc *alloc);
33 void DynBuf_Free(CDynBuf *p, ISzAlloc *alloc); 31 void DynBuf_Free(CDynBuf *p, ISzAlloc *alloc);
34 32
35 #ifdef __cplusplus 33 EXTERN_C_END
36 }
37 #endif
38 34
39 #endif 35 #endif
OLDNEW
« no previous file with comments | « third_party/lzma_sdk/7zArcIn.c ('k') | third_party/lzma_sdk/7zBuf.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698