Class: List<T>
A type that represents a list of items of a specific type. Similar to an array in JavaScript.
Type Parameters
| Type Parameter | Description | 
|---|---|
| 
 | The type of the items in the list. | 
Implements
- Schema<- T[]>
Accessors
of
Get Signature
get of():
Schema<T>
Gets the base type of the items in the list.
Returns
Schema<T>
Defined in
Constructors
new List()
Creates a new list type.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| 
 | 
 | The type of the items in the list. | 
Returns
List<T>
Defined in
Methods
write()
write(
writer:ByteStreamWriter,value:T[]):void
Writes the list to the buffer.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| 
 | The buffer writer. | |
| 
 | 
 | An array of items to write. | 
Returns
void
Implementation of
Schema.write
Defined in
read()
read(
reader:ByteStreamReader):T[]
Reads the list from the buffer.
Parameters
| Parameter | Type | Description | 
|---|---|---|
| 
 | The buffer reader. | 
Returns
T[]
An array of items read from the buffer.
Implementation of
Schema.read