FSFile:GetAvailable

FSFile:GetAvailable

Request #

Index WordDescription
0Header code [0x0C010100]
1-2u64, File Offset
3-4u64, Size

Response #

Index WordDescription
0Header code
1Result code
2-3u64, Number of available bytes

Description #

Gets the number of available bytes to read from an offset, up to the provided size value. Internally, this loops calling FSFile:Read until either the provided size value or the end of the file is reached.