/// <summary> /// Decode this PDU from the PduMarshaler. /// </summary> /// <param name="marshaler">This is used to decode the fields of this PDU.</param> public override bool Decode(PduMarshaler marshaler) { try { offset = marshaler.ReadUInt32(); length = marshaler.ReadUInt32(); status = (USBD_STATUS)marshaler.ReadUInt32(); } catch (Exception) { return false; } return true; }
/// <summary> /// Decode this PDU from the PduMarshaler. /// </summary> /// <param name="marshaler">This is used to decode the fields of this PDU.</param> public override bool Decode(PduMarshaler marshaler) { try { offset = marshaler.ReadUInt32(); length = marshaler.ReadUInt32(); status = (USBD_STATUS)marshaler.ReadUInt32(); } catch (Exception) { return(false); } return(true); }