Exemplo n.º 1
0
        public override ScalarValue Decode(Stream inStream)
        {
            ScalarValue subtractionLength = NullableInteger.Decode(inStream);

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

            ScalarValue difference = Ascii.Decode(inStream);

            return(new TwinValue(subtractionLength, difference));
        }
Exemplo n.º 2
0
        public override ScalarValue Decode(Stream inStream)
        {
            ScalarValue exp = NullableInteger.Decode(inStream);

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

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

            return(decimalValue);
        }