Method GetPayload
GetPayload(Byte[], Int32)
Returns the payload data at the current term position.
This is invalid until NextPosition() is called for
the first time.
This method must not be called more than once after each call
of NextPosition(). However, payloads are loaded lazily,
so if the payload data for the current position is not needed,
this method may not be called at all for performance reasons.
Declaration
byte[] GetPayload(byte[] data, int offset)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | the array into which the data of this payload is to be stored, if it is big enough; otherwise, a new byte[] array is allocated for this purpose. |
System.Int32 | offset | the offset in the array into which the data of this payload is to be stored. |
Returns
Type | Description |
---|---|
System.Byte[] | a byte[] array containing the data of this payload |