CS101_ASDU_clone

Function CS101_ASDU_clone 

Source
pub unsafe extern "C" fn CS101_ASDU_clone(
    self_: CS101_ASDU,
    clone: CS101_StaticASDU,
) -> CS101_ASDU
Expand description

Create a new ASDU that is an exact copy of the ASDU

§Arguments

  • self - ASDU instance to be copied
  • clone - static ASDU instance where to store the cloned ASDU or NULL. When this parameter is NULL the function will allocate the memory for the clone

§Returns

the cloned ASDU instance