Jump to content

API File.Buffer.ReadArray

From Flowcode Help
Revision as of 11:55, 16 January 2023 by Wiki bot (talk | contribs)
ReadArray
Reads an array from the input stream, returns elements read 
- HANDLE FileHandle
The handle of an open file 
- ARRAY Buffer
An array of some type to read from the file 
- ULONG Elements
Maximum number of elements to read 
- ULONG Timeout
A number of milliseconds to wait for the data to be available 
- ULONG Return


Detailed description

Examples

Calling in a calculation

  • Declare a variable 'result' of type ULONG
  • Add to a calculation icon:
    result = ::File.Buffer.ReadArray(filehandle, _arraybuffer, elements, timeout)