示例#1
0
        public BitList Clone()
        {
            BitList cloned = new BitList();

            cloned.AddRange(Data);
            return(cloned);
        }
示例#2
0
        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));
        }