public int Deserialize(byte[] buffer, int offset, int end) { byte header = buffer.ReadUInt8(offset++); if ((MessageType)(header >> 4) != MessageType.UnconfirmedRequest) throw new Exception("Could not deserialize an unconfirmed request message"); this.InvokeId = buffer.ReadUInt8(offset++); this.RejectReason = buffer.ReadUInt8(offset++); return offset; }