Ple File Utils#

PleFileHandle trt_edgellm::rt::openPleFile(
std::filesystem::path const &path
)#

Open a PLE shard for positioned reads.

void trt_edgellm::rt::closePleFile(PleFileHandle file) noexcept#

Close a PLE shard handle.

size_t trt_edgellm::rt::readPleFileAt(
PleFileHandle file,
void *buffer,
size_t bytes,
int64_t offset,
char const *errorMessage
)#

Read at most bytes from a fixed file offset, returning zero at end of file.

size_t trt_edgellm::rt::pleSystemPageSize() noexcept#

Return the host memory page size, or zero when the platform query fails.