public DSIPack(Stream si) { BER br = new BER(si); Flags = br.ReadByte(); Command = br.ReadByte(); RequestID = br.ReadUInt16(); ErrorCode = br.ReadInt32(); TotalDataLength = br.ReadUInt32(); Reserved = br.ReadUInt32(); Payload = br.ReadBytes(Convert.ToInt32(TotalDataLength)); }