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

file.write_at_least_at

Synopsis

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

Description

Write data until a minimum number of bytes has been transferred at the specified offset before returning.

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