public override void Serialize(bool[] 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.WriteBool(record[i]); } }
public override void Serialize(bool record, IDataOutputView target) => target.WriteBool(record);