Buffer: GetByte

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

Parameters

Arr
[ByRef] Variant. The array to retrieve the byte value from.
Index
[ByVal] Long. The byte index to read the byte at.

Return Values

Byte -  The byte value from within the array.

Remarks

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 8bits of the first element will be returned.

The lowerbound of the array is ignored. Index begins at 0.

See Also

Project VBCorLib Overview Class Buffer Overview Buffer Properties Buffer Methods ByteLength SetByte