BinaryStream.ReadUInt16
From Xojo Documentation
Method
Reads a two-byte value from the stream and returns it as a UInt16.
Notes
If you read over the end of the stream you get zero returned from this method. There is no error and no exception. If you want to test for this error, you can check the EndOfFile, BytePosition, and Length properties.