| 143 | } |
| 144 | |
| 145 | cc_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 | |
| 155 | cc_result Stream_WriteAllTo(const cc_string* path, const cc_uint8* data, cc_uint32 length) { |
| 156 | struct Stream stream; |
no test coverage detected