For the latest stable version, please use Emilua API 0.10!

file.read_at_least_at

Synopsis

local file = require "file"
file.read_at_least_at(io_object, offset: integer, buffer: byte_span, minimum: integer) -> 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.