BerEncoding Class

Provides methods for BER encoding.

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 class BerEncoding
Inheritance
Object    BerEncoding

Methods

CreateVariableLength Creates the variable length according to ISO/IEC 8825 (BER encoding). Maximum supported number of bytes for storing the length is 3.
GetLengthOfVariableLength Returns length in bytes of length of BER encoded data.
GetVariableLength 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.

See Also