Lines Matching full:size
8 SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType) in SeqInStream_Read2() argument
10 while (size != 0) in SeqInStream_Read2()
12 size_t processed = size; in SeqInStream_Read2()
17 size -= processed; in SeqInStream_Read2()
22 SRes SeqInStream_Read(ISeqInStream *stream, void *buf, size_t size) in SeqInStream_Read() argument
24 return SeqInStream_Read2(stream, buf, size, SZ_ERROR_INPUT_EOF); in SeqInStream_Read()
40 SRes LookInStream_LookRead(ILookInStream *stream, void *buf, size_t *size) in LookInStream_LookRead() argument
43 if (*size == 0) in LookInStream_LookRead()
45 RINOK(stream->Look(stream, &lookBuf, size)); in LookInStream_LookRead()
46 memcpy(buf, lookBuf, *size); in LookInStream_LookRead()
47 return stream->Skip(stream, *size); in LookInStream_LookRead()
50 SRes LookInStream_Read2(ILookInStream *stream, void *buf, size_t size, SRes errorType) in LookInStream_Read2() argument
52 while (size != 0) in LookInStream_Read2()
54 size_t processed = size; in LookInStream_Read2()
59 size -= processed; in LookInStream_Read2()
64 SRes LookInStream_Read(ILookInStream *stream, void *buf, size_t size) in LookInStream_Read() argument
66 return LookInStream_Read2(stream, buf, size, SZ_ERROR_INPUT_EOF); in LookInStream_Read()
69 static SRes LookToRead_Look_Lookahead(void *pp, const void **buf, size_t *size) in LookToRead_Look_Lookahead() argument
73 size_t size2 = p->size - p->pos; in LookToRead_Look_Lookahead()
74 if (size2 == 0 && *size > 0) in LookToRead_Look_Lookahead()
79 p->size = size2; in LookToRead_Look_Lookahead()
81 if (size2 < *size) in LookToRead_Look_Lookahead()
82 *size = size2; in LookToRead_Look_Lookahead()
87 static SRes LookToRead_Look_Exact(void *pp, const void **buf, size_t *size) in LookToRead_Look_Exact() argument
91 size_t size2 = p->size - p->pos; in LookToRead_Look_Exact()
92 if (size2 == 0 && *size > 0) in LookToRead_Look_Exact()
95 if (*size > LookToRead_BUF_SIZE) in LookToRead_Look_Exact()
96 *size = LookToRead_BUF_SIZE; in LookToRead_Look_Exact()
97 res = p->realStream->Read(p->realStream, p->buf, size); in LookToRead_Look_Exact()
98 size2 = p->size = *size; in LookToRead_Look_Exact()
100 if (size2 < *size) in LookToRead_Look_Exact()
101 *size = size2; in LookToRead_Look_Exact()
113 static SRes LookToRead_Read(void *pp, void *buf, size_t *size) in LookToRead_Read() argument
116 size_t rem = p->size - p->pos; in LookToRead_Read()
118 return p->realStream->Read(p->realStream, buf, size); in LookToRead_Read()
119 if (rem > *size) in LookToRead_Read()
120 rem = *size; in LookToRead_Read()
123 *size = rem; in LookToRead_Read()
130 p->pos = p->size = 0; in LookToRead_Seek()
146 p->pos = p->size = 0; in LookToRead_Init()
149 static SRes SecToLook_Read(void *pp, void *buf, size_t *size) in SecToLook_Read() argument
152 return LookInStream_LookRead(p->realStream, buf, size); in SecToLook_Read()
160 static SRes SecToRead_Read(void *pp, void *buf, size_t *size) in SecToRead_Read() argument
163 return p->realStream->Read(p->realStream, buf, size); in SecToRead_Read()