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.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
jls.lang.Struct(structDef, buffer)
Creates a structure.
|
| Method Attributes | Method Name and Description |
|---|---|
|
buffer()
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.
|