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