public static PDU Parse(byte[] rawPdu) { PDU parsed; using (var ms = new MemoryStream(rawPdu)) { parsed = PDU.Parse(ms); } return(parsed); }