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

Function Stream_FromFile

src/Stream.c:169–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void Stream_FromFile(struct Stream* s, cc_file file) {
170 Stream_Init(s);
171 s->meta.file = file;
172
173 s->Read = Stream_FileRead;
174 s->Write = Stream_FileWrite;
175 s->Close = Stream_FileClose;
176 s->Skip = Stream_FileSkip;
177 s->Seek = Stream_FileSeek;
178 s->Position = Stream_FilePosition;
179 s->Length = Stream_FileLength;
180}
181
182
183/*########################################################################################################################*

Callers 4

Stream_OpenPathFunction · 0.85
Stream_CreatePathFunction · 0.85
Stream_AppendPathFunction · 0.85
SysFont_InitFunction · 0.85

Calls 1

Stream_InitFunction · 0.85

Tested by

no test coverage detected