Пример #1
0
        public override ScalarValue Decode(System.IO.Stream in_Renamed)
        {
            var value_Renamed = (ByteVectorValue)BYTE_VECTOR.Decode(in_Renamed);

            return(new StringValue(System.Text.Encoding.UTF8.GetString(value_Renamed.value_Renamed)));
        }
Пример #2
0
        public override byte[] EncodeValue(ScalarValue value_Renamed)
        {
            var utf8encoding = System.Text.Encoding.UTF8.GetBytes(((StringValue)value_Renamed).value_Renamed);

            return(BYTE_VECTOR.Encode(new ByteVectorValue(utf8encoding)));
        }