Class jls.lang.Buffer

A container for data of a specific primitive type.
Defined in: Buffer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
Returns this buffer's capacity.
 
Clears this buffer, setting the position to zero and the limit to the capacity.
 
flip()
Flips this buffer, setting the limit to the position and the position to zero.
 
Returns this buffer's offset into the native byte array.
 
Increments this buffer's position and then returns the resulting position.
 
Returns this buffer's limit.
 
Returns the byte array position, considering the offset.
 
Returns this buffer's position.
 
Returns this buffer's remaining.
 
setLimit(limit)
Sets this buffer's limit.
 
setPosition(position)
Sets this buffer's position.
Class Detail
jls.lang.Buffer()
See:
jls.lang.ByteBuffer
jls.lang.CharBuffer
Method Detail
{Number} capacity()
Returns this buffer's capacity.
Returns:
{Number} The capacity of this buffer.

{jls.lang.Buffer} clear()
Clears this buffer, setting the position to zero and the limit to the capacity.
Returns:
{jls.lang.Buffer} This buffer.

{jls.lang.Buffer} flip()
Flips this buffer, setting the limit to the position and the position to zero.
Returns:
{jls.lang.Buffer} This buffer.

{Number} getOffset()
Returns this buffer's offset into the native byte array.
Returns:
{Number} The offset of this buffer.

{Number} incrementPosition(d)
Increments this buffer's position and then returns the resulting position.
Parameters:
{Number} d
The delta to increment.
Returns:
{Number} The position of this buffer.

{Number} limit()
Returns this buffer's limit.
Returns:
{Number} The limit of this buffer.

{Number} offset()
Returns the byte array position, considering the offset.
Returns:
{Number} The position of the byte array.

{Number} position()
Returns this buffer's position.
Returns:
{Number} The position of this buffer.

{Number} remaining()
Returns this buffer's remaining.
Returns:
{Number} The remaining of this buffer.

{jls.lang.Buffer} setLimit(limit)
Sets this buffer's limit.
Parameters:
{Number} limit
The limit to set.
Returns:
{jls.lang.Buffer} This buffer.

{jls.lang.Buffer} setPosition(position)
Sets this buffer's position.
Parameters:
{Number} position
The position to set.
Returns:
{jls.lang.Buffer} This buffer.

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 02:00:13 GMT+0100 (CET)