HdlcFrameParse Method
Parse a HDLC frame into its prats. It is supposed that frame parameter contains a valid HDLC frame of type 3. The validity can be checked
using GetNext method.
Namespace: OddPrg.Protocols.HdlcAssembly: OddPrg.Frames.Hdlc (in OddPrg.Frames.Hdlc.dll) Version: 1.0.0.2 (1.0.0.2)
public static void Parse(
ByteBuffer frame,
out ByteBuffer format,
out HdlcAddress clientAddress,
out HdlcAddress serverAddress,
out byte controlField,
out ByteBuffer hcs,
out ByteBuffer information,
out ByteBuffer fcs
)
Parameters
- frame ByteBuffer
- Contains whole HDLC frame of format type 3. Terminating byte may not be present.
- format ByteBuffer
- clientAddress HdlcAddress
- serverAddress HdlcAddress
- controlField Byte
- hcs ByteBuffer
- information ByteBuffer
- fcs ByteBuffer