Frame Class

Provides methods for consuming bytes form bytes array.

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 Frame
Inheritance
Object    Frame

Methods

CreateDataWithLength Joins length of data and data itself.
CreateDataWithTagAndLength Joins tag, length of data and data itself.
CreateVariableLengthSize Returns count of bytes to store variable length according to ISO/IEC 8825 (BER encoding).
GetByte Gets byte from index position and increments the postion.
GetNextDataWithFixedLength Extract the length bytes from the beginning of rawData ad deletes it from rawData.
GetNextDataWithVariableLength Extract data with variable length from the beginning of rawData and deletes it from rawData. Data length is coded folowing ISO/IEC 8825 standard.
GetUintValue Extracts uint value from first 4 bytes from index beginning.
GetUshortValue Extracts ushort value from first 2 bytes from index.
MoveToNextDataWithVariableLength Byte at index position evaluates as tag and next bytes as variable length of following data and moves index at the beginning of this data.

See Also