12 size_t processed =
size;
13 RINOK(stream->
Read(stream, buf, &processed));
16 buf = (
void *)((
Byte *)buf + processed);
30 RINOK(stream->
Read(stream, buf, &processed));
45 RINOK(stream->
Look(stream, &lookBuf, size));
46 memcpy(buf, lookBuf, *size);
47 return stream->
Skip(stream, *size);
54 size_t processed =
size;
55 RINOK(stream->
Read(stream, buf, &processed));
58 buf = (
void *)((
Byte *)buf + processed);
73 size_t size2 = p->
size - p->
pos;
74 if (size2 == 0 && *size > 0)
91 size_t size2 = p->
size - p->
pos;
92 if (size2 == 0 && *size > 0)
121 memcpy(buf, p->
buf + p->
pos, rem);
136 p->
s.
Look = lookahead ?
unsigned long long int UInt64
static SRes LookToRead_Read(void *pp, void *buf, size_t *size)
SRes SeqInStream_ReadByte(ISeqInStream *stream, Byte *buf)
SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size)
static SRes LookToRead_Look_Lookahead(void *pp, const void **buf, size_t *size)
static SRes SecToLook_Read(void *pp, void *buf, size_t *size)
SRes(* Seek)(void *p, Int64 *pos, ESzSeek origin)
void LookToRead_CreateVTable(CLookToRead *p, int lookahead)
static SRes LookToRead_Look_Exact(void *pp, const void **buf, size_t *size)
void SecToLook_CreateVTable(CSecToLook *p)
SRes(* Skip)(void *p, size_t offset)
static SRes SecToRead_Read(void *pp, void *buf, size_t *size)
SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType)
SRes LookInStream_SeekTo(ILookInStream *stream, UInt64 offset)
#define SZ_ERROR_INPUT_EOF
void LookToRead_Init(CLookToRead *p)
static SRes LookToRead_Skip(void *pp, size_t offset)
ISeekInStream * realStream
static SRes LookToRead_Seek(void *pp, Int64 *pos, ESzSeek origin)
ILookInStream * realStream
unsigned int offset(bool)
SRes LookInStream_Read2(ILookInStream *stream, void *buf, size_t size, SRes errorType)
SRes(* Read)(void *p, void *buf, size_t *size)
SRes LookInStream_Read(ILookInStream *stream, void *buf, size_t size)
ILookInStream * realStream
SRes(* Read)(void *p, void *buf, size_t *size)
SRes(* Seek)(void *p, Int64 *pos, ESzSeek origin)
SRes LookInStream_LookRead(ILookInStream *stream, void *buf, size_t *size)
SRes(* Read)(void *p, void *buf, size_t *size)
SRes(* Look)(void *p, const void **buf, size_t *size)
#define LookToRead_BUF_SIZE
tuple size
Write out results.
void SecToRead_CreateVTable(CSecToRead *p)