Beispiel #1
0
        public override ScalarValue Decode(System.IO.Stream in_Renamed)
        {
            ScalarValue subtractionLength = NULLABLE_INTEGER.Decode(in_Renamed);

            if (subtractionLength == null)
            {
                return(null);
            }

            ScalarValue difference = ASCII.Decode(in_Renamed);

            return(new TwinValue(subtractionLength, difference));
        }
        public override ScalarValue Decode(System.IO.Stream in_Renamed)
        {
            ScalarValue exp = NULLABLE_INTEGER.Decode(in_Renamed);

            if ((exp == null) || exp.Null)
            {
                return(null);
            }

            int  exponent     = exp.ToInt();
            long mantissa     = INTEGER.Decode(in_Renamed).ToLong();
            var  decimalValue = new DecimalValue(mantissa, exponent);

            return(decimalValue);
        }