public static String ReadVcmVcs(
            this DrdaStreamReader reader)
        {
            var value = reader.ReadVarString();

            if (String.IsNullOrEmpty(value))
            {
                value = reader.ReadVarString();
            }
            else
            {
                reader.ReadUInt16();
            }

            return(value);
        }
Exemple #2
0
        public DrdaColumn(
            DrdaStreamReader reader)
        {
            Precision = reader.ReadUInt16();
            Scale     = reader.ReadUInt16();
            Length    = reader.ReadUInt64();
            Db2Type   = (Db2Type)reader.ReadUInt16();

            CcsId    = reader.ReadUInt16();
            ArrayExt = reader.ReadUInt8();
            Unnamed  = reader.ReadUInt16();

            Name    = reader.ReadVcmVcs();
            Label   = reader.ReadVcmVcs();
            Comment = reader.ReadVcmVcs();

            var hiByte = reader.ReadUInt8();

            if (hiByte != 0xFF)
            {
                TypeName  = reader.ReadVcmVcs(hiByte);
                ClassName = reader.ReadVcmVcs();
            }

            // ReSharper disable once RedundantAssignment
            reader.ReadUInt8();

            KeyMem        = reader.ReadUInt16();
            Updateable    = reader.ReadUInt16();
            Generated     = reader.ReadUInt16();
            ParameterMode = reader.ReadUInt16();

            RdbName  = reader.ReadVarString();
            CoreName = reader.ReadVcmVcs();
            BaseName = reader.ReadVcmVcs();
            Scheme   = reader.ReadVcmVcs();
            DxName   = reader.ReadVcmVcs();
        }