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

Function Stream_AppendPath

src/Stream.c:145–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145cc_result Stream_AppendPath(struct Stream* s, const cc_filepath* path) {
146 cc_file file;
147 cc_result res;
148
149 if ((res = File_OpenOrCreate(&file, path))) return res;
150 if ((res = File_Seek(file, 0, FILE_SEEKFROM_END))) return res;
151 Stream_FromFile(s, file);
152 return res;
153}
154
155cc_result Stream_WriteAllTo(const cc_string* path, const cc_uint8* data, cc_uint32 length) {
156 struct Stream stream;

Callers 2

Logger_LogFunction · 0.85
OpenChatLogFunction · 0.85

Calls 3

Stream_FromFileFunction · 0.85
File_OpenOrCreateFunction · 0.70
File_SeekFunction · 0.70

Tested by

no test coverage detected