Get byte array from ByteBuffer as specified by index and length.

Namespace: BasicCard
Assembly: BasicCard (in BasicCard.dll) Version: 2.5.2.0 (2.5.2.0)

Syntax

C#
public byte[] GetBytes(
	int index,
	int length
)
Visual Basic
Public Function GetBytes ( 
	index As Integer,
	length As Integer
) As Byte()
Visual C++
public:
array<unsigned char>^ GetBytes(
	int index, 
	int length
)
F#
member GetBytes : 
        index : int * 
        length : int -> byte[] 

Parameters

index
Type: System..::..Int32
Index of first byte to copy.
length
Type: System..::..Int32
Number of bytes to copy.

Return Value

Type: array<Byte>[]()[][]
Array with length byte from byte buffer, starting at index position.

Remarks

This function returns a copy of internal data.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeExceptionIf index or length is out of bounds.

See Also