CS101_ASDU_createFromBuffer

Function CS101_ASDU_createFromBuffer 

Source
pub unsafe extern "C" fn CS101_ASDU_createFromBuffer(
    parameters: CS101_AppLayerParameters,
    msg: *mut u8,
    msgLength: c_int,
) -> CS101_ASDU
Expand description

Create a new ASDU instance from a buffer containing the raw ASDU message bytes

NOTE: Do not try to append information objects to the instance!

§Arguments

  • parameters - the application layer parameters used to encode the ASDU
  • msg - the buffer containing the raw ASDU message bytes
  • msgLength - the length of the message

§Returns

the new CS101_ASDU instance