MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Stream_ReadonlyPortion

Function Stream_ReadonlyPortion

src/Stream.c:229–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void Stream_ReadonlyPortion(struct Stream* s, struct Stream* source, cc_uint32 len) {
230 Stream_Init(s);
231 s->Read = Stream_PortionRead;
232 s->ReadU8 = Stream_PortionReadU8;
233 s->Skip = Stream_PortionSkip;
234 s->Position = Stream_PortionPosition;
235 s->Length = Stream_PortionLength;
236
237 s->meta.portion.source = source;
238 s->meta.portion.left = len;
239 s->meta.portion.length = len;
240}
241
242
243/*########################################################################################################################*

Callers 2

Zip_ReadLocalFileHeaderFunction · 0.85
Png_DecodeFunction · 0.85

Calls 1

Stream_InitFunction · 0.85

Tested by

no test coverage detected