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

Function _romfs_read

libctru/source/romfs_dev.c:45–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43#define romFS_file_mode (S_IFREG | S_IRUSR | S_IRGRP | S_IROTH)
44
45static ssize_t _romfs_read(romfs_mount *mount, u64 offset, void* buffer, u32 size)
46{
47 u64 pos = (u64)mount->offset + offset;
48 u32 read = 0;
49 Result rc = FSFILE_Read(mount->fd, &read, pos, buffer, size);
50 if (R_FAILED(rc)) return -1;
51 return read;
52}
53
54static bool _romfs_read_chk(romfs_mount *mount, u64 offset, void* buffer, u32 size)
55{

Callers 3

_romfs_read_chkFunction · 0.85
romfsMountFromFileFunction · 0.85
romfs_readFunction · 0.85

Calls 1

FSFILE_ReadFunction · 0.85

Tested by

no test coverage detected