Class: Str
A type that represents a fixed-length string.
Implements
Schema<string>
Constructors
new Str()
new Str(
byteLength:number):Str
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
Defined in
Methods
write()
write(
writer:ByteStreamWriter,value:string):void
Writes the string to the buffer.
Parameters
| Parameter | Type | Description |
|---|---|---|
| The buffer writer. | |
|
| The string to write. |
Returns
void
Implementation of
Schema.write
Defined in
read()
read(
reader:ByteStreamReader):string
Reads the string from the buffer.
Parameters
| Parameter | Type | Description |
|---|---|---|
| The buffer reader. |
Returns
string
The string read from the buffer.
Implementation of
Schema.read
Defined in
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
byteLength | readonly | number | types/str.ts:11 |