|
|
|
|
|
BufferToReal (Function) In french: BufferVersRéel Extracts a real from a binary buffer at a given position. New in version 2025
bMyBuffer is Buffer = fLoadBuffer("C:\Test\Xyl.raw")
IF bMyBuffer = "" THEN
Error("Error reading buffer")
RETURN
END
rMyReal is real = BufferToReal(bMyBuffer, 52)
Syntax
<Result> = BufferToReal(<Buffer to use> [, <Position> [, <Number of bytes to read>]])
<Result>: Real Real extracted from buffer. <Buffer to use>: Buffer Name of the buffer variable loaded in memory that contains the real value to find. This parameter can also correspond to an ANSI or Unicode string. <Position>: Optional integer Position at which the real will be searched. The first position of the buffer corresponds to 0. By default, <Position> is set to 0. <Number of bytes to read>: Optional integer Number of bytes on which the real is encoded. The value of this parameter is set to 4 or 8. By default, <Number of bytes to read> is set to 4. Remarks - By default, the real is read at the beginning of the buffer as a 4-byte real.
- The bytes are read in Little-Endian mode (the low byte is read first).
Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|