Buffer: GetByte |
Returns a the byte value at the given byte index within an array.
Public Function GetByte( ByRef Arr As Variant, ByVal Index As Long ) As Byte
The index is based on bytes, not the size of the actual array elements. For example: if getting the byte from a Long array at index 3, then the upper 8-bits of the first element will be returned.
The lower-bound of the array is ignored. Index begins at 0.
Exception | Condition |
---|---|
ArgumentNullException | Arr is unintialized. |
ArgumentException | Arr is not an array. |
ArgumentOutOfRangeException | Index is negative or greater than the length of Arr. |