Beispiel #1
0
        private CommandOutputMessage ReadCommandOutputMessage()
        {
            CommandOutputMessage result = new CommandOutputMessage();

            result.IsInternal = ReadBool();
            result.MessageId  = ReadString();

            var count = ReadUnsignedVarInt();

            result.Parameters = new string[count];

            for (int i = 0; i < result.Parameters.Length; i++)
            {
                result.Parameters[i] = ReadString();
            }

            return(result);
        }
Beispiel #2
0
        partial void AfterDecode()
        {
            OriginData   = ReadOriginData();
            OutputType   = (CommandOutputType)ReadByte();
            SuccessCount = ReadUnsignedVarInt();

            var messageCount = ReadUnsignedVarInt();

            Messages = new CommandOutputMessage[messageCount];

            for (int i = 0; i < Messages.Length; i++)
            {
                Messages[i] = ReadCommandOutputMessage();
            }

            if (OutputType == CommandOutputType.DataSet)
            {
                UnknownString = ReadString();
            }
        }