378
Platforms
©2000-2008 Tibbo Technology Inc.
The romfile object can only access first 65534 bytes of each file. This is
because the romfile.pointer is a variable of word type. This method will
also work only within this limit.
8.3.7.2
.Getdata Method
Function:
Reads data from a currently opened resource (ROM) file.
Syntax:
romfile.getdata(maxinplen as byte) as string
Returns:
String containing a part of the ROM file's data
See Also:
Part
Description
maxinplen
Maximum input length -- number of characters to read from
the file.
Details
Readout size is limited by three factors (whichever is smaller): capacity of the
receiving string, the amount of remaining data in the file (from current position-
see the
), and maxinplen parameter. Current position is moved
forward by the actual number of bytes that was read out.
The romfile object can only access first 65534 bytes of each file. This is
because the romfile.pointer is a variable of word type. This method will
also work only within this limit.
8.3.7.3
.Offset R/O Property
Function:
Returns the offset of the currently opened file.
Type:
Dword
Value Range:
Only limited by the size of compiled binary of your
project.
See Also:
Details
This read-only property returns the address of the base of the currently opened file
within the compiled binary of your project. The property is used to pass the data of
the file to some other object that may need this data. This way, the "separation of
labor" is maintained between the objects. The romfile object opens the file and
passes the pointer to this file, in the form of the romfile.offset property value, to
another object that requires this information. The property has no other uses.
This property is not available on the
platform.
375
379
379
134