Buffer: ByteLength

ByteLength

Returns the length of the array in bytes.



 Public Function ByteLength(
	  ByRef Arr As Variant ) As Long

Parameters

Arr
[ByRef] Variant. The array to retrieve the size in bytes from.

Return Values

Long -  The size of the array in bytes.

Remarks

The size is calculated by taking the number of elements in the array and multiply it by the number of bytes each element is in length.

See Also

Project VBCorLib Overview Class Buffer Overview Buffer Properties Buffer Methods BlockCopy GetByte