PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Extracts a real found in a binary buffer at a given position.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
New in version 22
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Java This function is now available for the Java applications.
Example
// Extract the real found at byte 52 of Xyl.raw file

// Load the buffer corresponding to the Xyl.raw file
bMyBuffer is Buffer = fLoadBuffer("C:\Test\Xyl.raw")
// Check that it loaded properly
IF bMyBuffer = "" THEN
Error("Error while reading the buffer")
RETURN
END
// Extract the real found at byte 52
rMyReal is real = BufferToReal(bMyBuffer, 52)
Syntax
<Result> = BufferToReal(<Buffer to Use> [, <Position> [, <Number of Bytes to Read>]])
<Result>: Real
Real extracted from the 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 is sought. 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 sought real is coded. 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).
Components
WINDEVWEBDEV - Server codeReports and Queries wd230std.dll
Java wd230java.jar
Linux wd230std.so
Android wd230android.jar
Minimum required version
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment