PayloadExtractLength Method

Determines the length of a payload in a "Payload-Aware" transmission from the payload header information.

Definition

Namespace: Gemstone.Communication
Assembly: Gemstone.Communication (in Gemstone.Communication.dll) Version: 1.0.169 -- Release Build+ac7d9b6b95c90919e0d9e684462efdeb467e30f6
public static int ExtractLength(
	byte[] buffer,
	int length,
	byte[] marker,
	EndianOrder endianOrder
)

Parameters

buffer  Byte
The buffer containing payload header information starting at index zero.
length  Int32
The length of valid data within in buffer.
marker  Byte
The byte sequence used to mark the beginning of the payload in a "Payload-Aware" transmissions.
endianOrder  EndianOrder
The endian order to apply to payload size decoding.

Return Value

Int32
Length of the payload.

See Also