BerEncodingGetVariableLength Method

Extract variable length using ISO/IEC 8825 (BER encoding) from the beginning og rawData and deletes it from rawData. Length stored max in 3 bytes is supported.

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 int GetVariableLength(
	ByteBuffer rawData,
	ref int index
)

Parameters

rawData  ByteBuffer
Data returned by a meter to parse.
index  Int32
Index in rawData to start.

Return Value

Int32

See Also