Click or drag to resize
IMessageBytesExtractorExtractMessageBytes Method
Returns a collection of byte arrays, each byte array corresponding to a complete message.

Namespace: VirtualRadar.Interface.Listener
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
IEnumerable<ExtractedBytes> ExtractMessageBytes(
	byte[] bytes,
	int offset,
	int length
)

Parameters

bytes
Type: SystemByte
offset
Type: SystemInt32
length
Type: SystemInt32

Return Value

Type: IEnumerableExtractedBytes
Remarks

Extractors need to be miserly with the resources that they consume and so implementations are allowed to reuse the ExtractedBytes that they return and the byte array within the ExtractedBytes. If a caller wants to ensure that each element returned by the enumerator is independent of the others then it should clone each of them as they are returned - e.g.

var list = extractor.ExtractMessageBytes(bytes, 0, bytes.Length).Select(r => (ExtractedBytes)r.Clone()).ToList();
See Also