Click or drag to resize

ILengthEncodedExtensionsEncode Method

Encodes data length. Length bytes are directly before data bytes.

Namespace:  Demo3D.HLE.Comms.Telegram
Assembly:  Demo3D.HLE (in Demo3D.HLE.dll) Version: 15.0.2.11458
Syntax
C#
public static BufferSegment Encode(
	this ILengthEncoded lengthEncoded,
	BufferSegment data
)

Parameters

lengthEncoded
Type: Demo3D.HLE.Comms.TelegramILengthEncoded
data
Type: Demo3D.IOBufferSegment
Data to encode.

Return Value

Type: BufferSegment
Length-encoded data.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ILengthEncoded. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also