MCPcopy Create free account
hub / github.com/devkitPro/libctru / FSFILE_SetSize

Function FSFILE_SetSize

libctru/source/services/fs.c:1707–1719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1705}
1706
1707Result FSFILE_SetSize(Handle handle, u64 size)
1708{
1709 u32 *cmdbuf = getThreadCommandBuffer();
1710
1711 cmdbuf[0] = IPC_MakeHeader(0x805,2,0); // 0x8050080
1712 cmdbuf[1] = (u32) size;
1713 cmdbuf[2] = (u32) (size >> 32);
1714
1715 Result ret = 0;
1716 if(R_FAILED(ret = svcSendSyncRequest(handle))) return ret;
1717
1718 return cmdbuf[1];
1719}
1720
1721Result FSFILE_GetAttributes(Handle handle, u32* attributes)
1722{

Callers 2

archive_openFunction · 0.85
archive_ftruncateFunction · 0.85

Calls 2

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85

Tested by

no test coverage detected