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

Function Platform_EncodePath

src/gba/Platform_GBA.c:216–219  ·  view source on GitHub ↗

#######################################################################################################################* *-----------------------------------------------------Directory/File------------------------------------------------------* *#########################################################################################################################*/

Source from the content-addressed store, hash-verified

214*-----------------------------------------------------Directory/File------------------------------------------------------*
215*#########################################################################################################################*/
216void Platform_EncodePath(cc_filepath* dst, const cc_string* path) {
217 int len = String_CopyToRaw(dst->buffer, sizeof(dst->buffer) - 1, path);
218 dst->buffer[len] = '\0'; // Always null terminate just in case
219}
220
221void Platform_DecodePath(cc_string* dst, const cc_filepath* path) {
222 String_AppendConst(dst, path->buffer);

Callers

nothing calls this directly

Calls 1

String_CopyToRawFunction · 0.85

Tested by

no test coverage detected