public BitList Clone() { BitList cloned = new BitList(); cloned.AddRange(Data); return(cloned); }
public static QRSegment CreateByteSegment(byte[] data) { if (data is null) { throw new ArgumentNullException(nameof(data)); } BitList bits = new BitList(); bits.AddRange(data); return(new QRSegment(Mode.Byte, data.Length, bits)); }