|
BytePTR | ||
BytePointer = BytePTR(Pointer) | ||
Parameters: Pointer = The Pointer Data Type you wish to recast |
||
Returns: BytePointer = Returns the recast input value as a new pointer |
||
BytePTR will explicitly recast the supplied pointer to that of a Byte pointer. FACTS: * Typed pointers like Byte/Word/Integer and Float can only read/write values of matching data type. * Additions / Subtraction to typed pointers with be automatically scale to the pointers data width. Mini Tutorial: This Example declares an generic integer pointer, then dynamically recasts it to read different data types from memory.
This example would output.
|
Related Info: | Dim | Float | FloatPTR | Int | IntPTR | Pointer | types | WordPTR : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |