Arguments: 1) real: objectID 2) real const: byteOrder
Sets the Byte Order of the file.
Defaults to ENDIAN_LITTLE. Available byte orders are:
ENDIAN_LITTLE: (Little endian) ENDIAN_BIG: (Big endian)
Arguments: 1) real: objectID 2) real const: characterCode
Sets the Character Code of the file.
This is necessary for reading strings with ObjFileB_ReadString.
Defaults to CODE_ACP.
Available character codes are:
CODE_ACP: ANSI/Shift-JIS CODE_UTF8: UTF8 CODE_UTF16LE: UTF16 LE CODE_UTF16BE: UTF16 BE
Arguments: 1) real: objectID Return Type: real
Returns the position of the current file pointer.
Arguments: 1) real: objectID 2) real: position
Sets the position of the current file pointer.
Arguments: 1) real: objectID Return Type: bool
Reads a byte from the file and returns a boolean value.
This will also advance the file pointer by 1 byte.
Arguments: 1) real: objectID Return Type: real
Reads a signed byte from the file and returns it (1-byte integer).
This will also advance the file pointer by 1 byte.
Arguments: 1) real: objectID Return Type: real
Reads a signed short from the file and returns it (2-byte integer).
This will also advance the file pointer by 2 bytes.
Arguments: 1) real: objectID Return Type: real
Reads a signed integer from the file and returns it (4-byte integer).
This will also advance the file pointer by 4 bytes.
Arguments: 1) real: objectID Return Type: real
Reads a signed long from the file and returns it (8-byte integer).
This will also advance the file pointer by 8 bytes.
Arguments: 1) real: objectID Return Type: real
Reads a float from the file and returns it (4-byte floating point).
This will also advance the file pointer by 4 bytes.
Arguments: 1) real: objectID Return Type: real
Reads a double from the file and returns it (8-byte floating point).
Arguments: 1) real: objectID 2) real: size Return Type: string
Reads a string of the given size in bytes from the file and returns it.
This will also advance the file pointer by 8 bytes.
Arguments: 1) real: objectID Return Type: real array
Reads the entire file and returns it as an array of individual bytes.
This will also advance the file pointer to the end of the file.
Arguments: 1) real: objectID 2) bool: value
Adds a boolean value to the list of bytes to be output to the file.
This will be actually written to the file when ObjFile_Store is called.
Arguments: 1) real: objectID 2) real: value
Adds a 1-byte integer to the list of bytes to be output to the file.
This will be actually written to the file when ObjFile_Store is called.
Arguments: 1) real: objectID 2) real: value
Adds a 2-byte integer to the list of bytes to be output to the file.
This will be actually written to the file when ObjFile_Store is called.
Arguments: 1) real: objectID 2) real: value
Adds a 4-byte integer to the list of bytes to be output to the file.
This will be actually written to the file when ObjFile_Store is called.
Arguments: 1) real: objectID 2) real: value
Adds an 8-byte integer to the list of bytes to be output to the file.
This will be actually written to the file when ObjFile_Store is called.
Arguments: 1) real: objectID 2) real: value
Adds a 4-byte floating point number to the list of bytes to be output to the file.
This will be actually written to the file when ObjFile_Store is called.
Arguments: 1) real: objectID 2) real: value
Adds an 8-byte floating point number to the list of bytes to be output to the file.
This will be actually written to the file when ObjFile_Store is called.
Arguments: 1) real: objectID
Adds a string to the list of bytes to be output to the file.
This will be actually written to the file when ObjFile_Store is called.
Arguments: 1) real: objectID
Adds an array of bytes to the list of bytes to be output to the file.
This will be actually written to the file when ObjFile_Store is called.