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
BaseType
<T
[]>
Accessors
of
Get Signature
get of():
BaseType
<T
>
Gets the base type of the items in the list.
Returns
BaseType
<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(
value
:T
[],writer
:BufferWriter
):void
Writes the list to the buffer.
Parameters
Parameter | Type | Description |
---|---|---|
|
| An array of items to write. |
| The buffer writer. |
Returns
void
Implementation of
Defined in
read()
read(
reader
:BufferReader
):T
[]
Reads the list from the buffer.
Parameters
Parameter | Type | Description |
---|---|---|
| The buffer reader. |
Returns
T
[]
An array of items read from the buffer.