native

fread_blocks

Syntax

native fread_blocks(file, any:data[], blocks, mode);

Description

Reads binary data from a file.

Parameters

file Handle to the file
data Array to store each item read
blocks Number of items to read into the array
mode Size of each element, in bytes, to be read
Valid sizes are 1, 2, or 4. See BLOCK_* constants.

Return

Number of elements read