SdlLoad
Load all the data from a file path.
The data is allocated with a zero byte at the end (null terminated) for convenience. This extra byte is not included in the value reported via ADataSize
.
The data should be freed with SdlFree.
Definition
Unit: Neslib.Sdl3.IO
Parameters
AFilename
: String
: The path to read all available data from.
ADataSize
: NativeInt
: Set to the number of bytes read.
Returns
Pointer
: The data.
Exceptions
ESdlError
: Raised on failure.
See Also
Remarks
This function is not thread safe.