IMessageBytesExtractorExtractMessageBytes Method |
Returns a collection of byte arrays, each byte array corresponding to a complete message.
Namespace: VirtualRadar.Interface.ListenerAssembly: 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
)
Function ExtractMessageBytes (
bytes As Byte(),
offset As Integer,
length As Integer
) As IEnumerable(Of ExtractedBytes)
IEnumerable<ExtractedBytes^>^ ExtractMessageBytes(
array<unsigned char>^ bytes,
int offset,
int length
)
abstract ExtractMessageBytes :
bytes : byte[] *
offset : int *
length : int -> IEnumerable<ExtractedBytes>
Parameters
- bytes
- Type: SystemByte
- offset
- Type: SystemInt32
- length
- Type: SystemInt32
Return Value
Type:
IEnumerableExtractedBytesRemarks
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