ReadFloat method
Starting with the byte referred to by DataOffset, the ReadFloat method reads 4 bytes from the Message Data buffer and returns them as a Single (signed 4-byte) floating point value.
The method fails if MQMessage.DataLength is less than 4 when it is issued.
DataOffset is incremented by 4 and DataLength is decremented by 4 if the method succeeds.
The 4 characters of message data are assumed to be a floating point number. The encoding is specified by the MQMessage.Encoding property. Note that conversion from System/360 format is not supported.
- Defined in:
- MQMessage class
- Syntax:
- singlev! = MQMessage .ReadFloat