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

Side by Side Diff: third_party/lzma_sdk/7zStream.c

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/7zIn.c ('k') | third_party/lzma_sdk/7zTypes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 7zStream.c -- 7z Stream functions 1 /* 7zStream.c -- 7z Stream functions
2 2010-03-11 : Igor Pavlov : Public domain */ 2 2013-11-12 : Igor Pavlov : Public domain */
3
4 #include "Precomp.h"
3 5
4 #include <string.h> 6 #include <string.h>
5 7
6 #include "Types.h" 8 #include "7zTypes.h"
7 9
8 SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorT ype) 10 SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorT ype)
9 { 11 {
10 while (size != 0) 12 while (size != 0)
11 { 13 {
12 size_t processed = size; 14 size_t processed = size;
13 RINOK(stream->Read(stream, buf, &processed)); 15 RINOK(stream->Read(stream, buf, &processed));
14 if (processed == 0) 16 if (processed == 0)
15 return errorType; 17 return errorType;
16 buf = (void *)((Byte *)buf + processed); 18 buf = (void *)((Byte *)buf + processed);
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 static SRes SecToRead_Read(void *pp, void *buf, size_t *size) 162 static SRes SecToRead_Read(void *pp, void *buf, size_t *size)
161 { 163 {
162 CSecToRead *p = (CSecToRead *)pp; 164 CSecToRead *p = (CSecToRead *)pp;
163 return p->realStream->Read(p->realStream, buf, size); 165 return p->realStream->Read(p->realStream, buf, size);
164 } 166 }
165 167
166 void SecToRead_CreateVTable(CSecToRead *p) 168 void SecToRead_CreateVTable(CSecToRead *p)
167 { 169 {
168 p->s.Read = SecToRead_Read; 170 p->s.Read = SecToRead_Read;
169 } 171 }
OLDNEW
« no previous file with comments | « third_party/lzma_sdk/7zIn.c ('k') | third_party/lzma_sdk/7zTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698