Ejemplo n.º 1
0
        public string ReadErrorCode()
        {
            ushort attrLength = serializer.ReadUShort();
            uint   bits       = serializer.ReadUInt();
            uint   code       = bits & 0xFF;
            uint   codeClass  = (bits & 0x700) >> 8;
            string phrase     = serializer.ReadString(attrLength - 4);

            while ((attrLength++) % 4 != 0)
            {
                serializer.ReadByte();
            }
            return("Error (" + codeClass + code.ToString("D2") + "): " + phrase);
        }