Class jls.lang.Struct

This class represents a structure. A structure specifies the format of a record, including the names and types of its members, and the order in which they are stored.
Defined in: Struct.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
jls.lang.Struct(structDef, buffer)
Creates a structure.
Method Summary
Method Attributes Method Name and Description
 
Returns the buffer.
 
get(name, index)
Gets a field in this structure.
 
put(name, value, index)
Puts a field in this structure.
 
size()
Returns the size of the struct.
Class Detail
jls.lang.Struct(structDef, buffer)
Creates a structure.
Parameters:
{Array} structDef
The structure definition.
{jls.lang.ByteBuffer} buffer Optional
The buffer to use for this structure.
Method Detail
{jls.lang.ByteBuffer} buffer()
Returns the buffer.
Returns:
{jls.lang.ByteBuffer} The buffer.

{Number|String} get(name, index)
Gets a field in this structure.
Parameters:
{String} name
The field name.
{Number} index Optional
The index of the value to get.
Returns:
{Number|String} The field value.

{jls.lang.Struct} put(name, value, index)
Puts a field in this structure.
Parameters:
{String} name
The field name.
{Number|String} value
The field value to set.
{Number} index Optional
The index of the value to get.
Returns:
{jls.lang.Struct} This structure.

{Number} size()
Returns the size of the struct.
Returns:
{Number} The size.

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 01:56:36 GMT+0100 (CET)