AMX Mod X API Documentation

Signature
native fread_raw(file, any:stream[], blocksize, blocks);
Description

Reads raw binary data from a file.

Parameters
  • file Handle to the file
  • stream Array to store each item read
  • blocksize Number of items to read into the array
  • blocks Size of each element, in bytes. The data is read directly.

    That is, in 1 or 2-byte mode, the lower byte(s) in

    each cell are used directly, rather than performing

    any casts from a 4-byte number to a smaller number.

Returns

Number of elements read

Назад
Верх