Пример #1
0
        public override void Serialize(char[] record, IDataOutputView target)
        {
            if (record == null)
            {
                throw new IllegalArgumentException("The record must not be null.");
            }

            var len = record.Length;

            target.WriteInt(len);
            for (var i = 0; i < len; i++)
            {
                target.WriteChar(record[i]);
            }
        }
 public override void Serialize(char record, IDataOutputView target) => target.WriteChar(record);
 public override void Copy(IDataInputView source, IDataOutputView target) => target.WriteChar(source.ReadChar());