file.read_all_at

Synopsis

local file = require "file"
file.read_all_at(io_object, offset: integer, buffer: byte_span) -> integer

Description

Attempt to read a certain amount of data at the specified offset before returning.

This operation is implemented in terms of zero or more calls to the device’s read_some_at function.