iTextSharp.text.pdf.qrcode.ByteArray.Reserve C# (CSharp) Method

Reserve() public method

public Reserve ( int capacity ) : void
capacity int
return void
        public void Reserve(int capacity) {
            if (bytes == null || bytes.Length < capacity) {
                byte[] newArray = new byte[capacity];
                if (bytes != null) {
                    System.Array.Copy(bytes, 0, newArray, 0, bytes.Length);
                }
                bytes = newArray;
            }
        }