Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter FiveGeneral Functions (continued)

Put64Word Function

Overview

The Put64Word function puts a 64-bit qword or long to a buffer at a specified byte position.

Syntax/Parameters

Syntax

int = Put64Word ( buffer data, int position, qword value );

Parameters

data

A buffer as bytes, chars, string or a handle to a Data Object. This is referenced on a byte by byte position to write eight bytes to create the 64-bit qword.

position

An int specifying a zero-based position in bytes. This should point to the start of the data for the word. If the position plus the size of the data element is outside of the scope of the buffer, a range error will be returned.

value

A word value to place in the buffer. The order will be little-endian.

Return Value

Returns an int as ERROR_NONE or a formatted error code on failure.

Remarks

The Put64Word function allows a script to reach into a buffer and place a 64-bit value.

When adding to a single-dimension array, the axis depth is adjusted if the placement exceeds the last position. For other types or multiple dimensions, the axis depth is not adjusted. For automatically allocated arrays, the array size is not adjusted using this function. Any fraction amount of the data type size will push the depth plus one element.

The last position of the Data Object is also adjusted if the end position if the size of the value placed exceeds the last position.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic