C# Class iTextSharp.xmp.impl.ByteBuffer

Byte buffer container including length of valid data. @since 11.10.2006
Exibir arquivo Open project: nonorganic/dssnet

Public Methods

Method Description
Append ( ByteBuffer anotherBuffer ) : void

Append another buffer to this buffer.

Append ( byte b ) : void

Appends a byte to the buffer.

Append ( byte bytes, int offset, int len ) : void

Appends a byte array or part of to the buffer.

ByteAt ( int index ) : byte
ByteBuffer ( Stream inp ) : System

Loads the stream into a buffer.

ByteBuffer ( byte buffer ) : System
ByteBuffer ( byte buffer, int length ) : System
ByteBuffer ( byte buffer, int offset, int length ) : System
ByteBuffer ( int initialCapacity ) : System
CharAt ( int index ) : int

Private Methods

Method Description
EnsureCapacity ( int requestedLength ) : void

Ensures the requested capacity by increasing the buffer size when the current length is exceeded.

Method Details

Append() public method

Append another buffer to this buffer.
public Append ( ByteBuffer anotherBuffer ) : void
anotherBuffer ByteBuffer another ByteBuffer
return void

Append() public method

Appends a byte to the buffer.
public Append ( byte b ) : void
b byte a byte
return void

Append() public method

Appends a byte array or part of to the buffer.
public Append ( byte bytes, int offset, int len ) : void
bytes byte a byte array
offset int an offset with
len int
return void

ByteAt() public method

public ByteAt ( int index ) : byte
index int the index to retrieve the byte from
return byte

ByteBuffer() public method

Loads the stream into a buffer.
If the stream cannot be read.
public ByteBuffer ( Stream inp ) : System
inp Stream
return System

ByteBuffer() public method

public ByteBuffer ( byte buffer ) : System
buffer byte a byte array that will be wrapped with ByteBuffer.
return System

ByteBuffer() public method

public ByteBuffer ( byte buffer, int length ) : System
buffer byte a byte array that will be wrapped with ByteBuffer.
length int the length of valid bytes in the array
return System

ByteBuffer() public method

public ByteBuffer ( byte buffer, int offset, int length ) : System
buffer byte a byte array that will be wrapped with ByteBuffer.
offset int the offset of the provided buffer.
length int the length of valid bytes in the array
return System

ByteBuffer() public method

public ByteBuffer ( int initialCapacity ) : System
initialCapacity int the initial capacity for this buffer
return System

CharAt() public method

public CharAt ( int index ) : int
index int the index to retrieve a byte as int or char.
return int