BerEncodingCreateVariableLength Method

Creates the variable length according to ISO/IEC 8825 (BER encoding). Maximum supported number of bytes for storing the length is 3.

Definition

Namespace: OddPrg.Protocols.DLMS
Assembly: OddPrg.Frames.Dlms (in OddPrg.Frames.Dlms.dll) Version: 2.0.0.24 (2.0.0.24)
C#
public static ByteBuffer CreateVariableLength(
	int length
)

Parameters

length  Int32
Length to encode: 0 to 0x00FFFFFF.

Return Value

ByteBuffer

See Also