iTextSharp.text.pdf.ByteBuffer.Append C# (CSharp) Метод

Append() публичный Метод

public Append ( byte b, int off, int len ) : ByteBuffer
b byte
off int
len int
Результат ByteBuffer
        public ByteBuffer Append(byte[] b, int off, int len)
        {
            if ((off < 0) || (off > b.Length) || (len < 0) ||
                ((off + len) > b.Length) || ((off + len) < 0) || len == 0)
                return this;
            int newcount = count + len;
            if (newcount > buf.Length) {
                byte[] newbuf = new byte[Math.Max(buf.Length << 1, newcount)];
                Array.Copy(buf, 0, newbuf, 0, count);
                buf = newbuf;
            }
            Array.Copy(b, off, buf, count, len);
            count = newcount;
            return this;
        }

Same methods

ByteBuffer::Append ( ByteBuffer buf ) : ByteBuffer
ByteBuffer::Append ( byte b ) : ByteBuffer
ByteBuffer::Append ( char c ) : ByteBuffer
ByteBuffer::Append ( double d ) : ByteBuffer
ByteBuffer::Append ( float i ) : ByteBuffer
ByteBuffer::Append ( int i ) : ByteBuffer
ByteBuffer::Append ( long i ) : ByteBuffer
ByteBuffer::Append ( string str ) : ByteBuffer

Usage Example

Пример #1
0
 private void SerArray(PdfArray array, int level, ByteBuffer bb, Dictionary <RefKey, int> serialized)
 {
     bb.Append("$A");
     if (level <= 0)
     {
         return;
     }
     for (int k = 0; k < array.Size; ++k)
     {
         SerObject(array[k], level, bb, serialized);
     }
 }
All Usage Examples Of iTextSharp.text.pdf.ByteBuffer::Append