BinaryStream.ReadInt64
From Xojo Documentation
Method
Reads an eight-byte value from the stream and returns it as an Int64.
Notes
If you read over the end of the stream you get zero returned from this method. No error and no exception. If you want to test for this error, you can check the EndOfFile, BytePosition, and Length properties.