10 size_t processed =
size;
46 size_t processed =
size;
63 size_t size2 =
p->size -
p->pos;
64 if (size2 == 0 && *
size > 0) {
67 res =
p->realStream->Read(
p->realStream,
p->buf, &size2);
72 *
buf =
p->buf +
p->pos;
79 size_t size2 =
p->size -
p->pos;
80 if (size2 == 0 && *
size > 0) {
84 res =
p->realStream->Read(
p->realStream,
p->buf,
size);
85 size2 =
p->size = *
size;
89 *
buf =
p->buf +
p->pos;
101 size_t rem =
p->size -
p->pos;
103 return p->realStream->Read(
p->realStream,
buf,
size);
106 memcpy(
buf,
p->buf +
p->pos, rem);
114 p->pos =
p->size = 0;
115 return p->realStream->Seek(
p->realStream,
pos, origin);
136 return p->realStream->Read(
p->realStream,
buf,
size);
#define SZ_ERROR_INPUT_EOF
static SRes LookToRead_Read(void *pp, void *buf, size_t *size)
unsigned long long int UInt64
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)
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)
static SRes SecToRead_Read(void *pp, void *buf, size_t *size)
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
SRes SeqInStream_Read2(ISeqInStream *stream, void *buf, size_t size, SRes errorType)
SRes LookInStream_SeekTo(ILookInStream *stream, UInt64 offset)
void LookToRead_Init(CLookToRead *p)
static SRes LookToRead_Skip(void *pp, size_t offset)
static SRes LookToRead_Seek(void *pp, Int64 *pos, ESzSeek origin)
#define LookToRead_BUF_SIZE
SRes LookInStream_Read2(ILookInStream *stream, void *buf, size_t size, SRes errorType)
SRes LookInStream_Read(ILookInStream *stream, void *buf, size_t size)
SRes LookInStream_LookRead(ILookInStream *stream, void *buf, size_t *size)
void SecToRead_CreateVTable(CSecToRead *p)