Get Cursor Position Value From Buffer Method
The Get Cursor Position Value From Buffer method returns the value that a position contains from a buffer. This position is the position where the cursor currently resides. To determine where to read from the buffer, you can use the Cursor property. For more information, see Cursor Position in Buffer Property.
Format
bufferVar.getValue([valueSize][, valueType ])
The following table describes the arguments for the Get Cursor Position Value From Buffer method.
Argument | Description |
---|---|
valueSize |
A positive number that describes the number of bytes that the this method reads. You can use any of the following values:
The default value is 1. These values must not conflict with any values you use with the valueType argument. For more information, see the following section. |
valueType |
The type of data that the this method reads. You can use one of the following values:
Signed is the default value. |
Values You Can Use with the ValueSize and ValueType Arguments
The following table describes the value combinations you can use with the valueSize argument and the valueType argument. The values of the valueSize argument and the valueType argument must match the structure of the data that the Get Cursor Position Value From Buffer method reads. Any other combination causes an error.
Value in the valueSize Argument | Value in the valueType Argument |
---|---|
1 |
signed, unsigned |
2 |
signed, unsigned |
3 |
signed, unsigned |
4 |
signed, unsigned, float |
8 |
float |