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

Function FSFILE_GetSize

libctru/source/services/fs.c:1693–1705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1691}
1692
1693Result FSFILE_GetSize(Handle handle, u64* size)
1694{
1695 u32 *cmdbuf = getThreadCommandBuffer();
1696
1697 cmdbuf[0] = IPC_MakeHeader(0x804,0,0); // 0x8040000
1698
1699 Result ret = 0;
1700 if(R_FAILED(ret = svcSendSyncRequest(handle))) return ret;
1701
1702 if(size) *size = cmdbuf[2] | ((u64) cmdbuf[3] << 32);
1703
1704 return cmdbuf[1];
1705}
1706
1707Result FSFILE_SetSize(Handle handle, u64 size)
1708{

Callers 4

archive_writeFunction · 0.85
archive_seekFunction · 0.85
archive_fstatFunction · 0.85
ndspFindAndLoadComponentFunction · 0.85

Calls 2

getThreadCommandBufferFunction · 0.85
IPC_MakeHeaderFunction · 0.85

Tested by

no test coverage detected