private static String DecodeString(MemoryStream buffer)
        {
            int           length  = VarInt.GetVarInt(buffer);
            StringBuilder builder = new StringBuilder();

            for (int i = 0; i < length; i++)
            {
                builder.Append((char)buffer.ReadByte());
            }
            return(builder.ToString());
        }