c0data
Preparing search index...
ByteWriter
Class ByteWriter
A growable byte buffer.
Index
Constructors
constructor
Properties
length
Methods
clear
push
to
Uint8
Array
write
write
String
Constructors
constructor
new
ByteWriter
(
capacity
?:
number
)
:
ByteWriter
Parameters
capacity
:
number
= 256
Returns
ByteWriter
Properties
length
length
:
number
= 0
Methods
clear
clear
()
:
void
Returns
void
push
push
(
b
:
number
)
:
void
Parameters
b
:
number
Returns
void
to
Uint8
Array
toUint8Array
()
:
Uint8Array
A copy of the bytes written so far.
Returns
Uint8Array
write
write
(
bytes
:
Uint8Array
)
:
void
Parameters
bytes
:
Uint8Array
Returns
void
write
String
writeString
(
s
:
string
)
:
void
Parameters
s
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
length
Methods
clear
push
to
Uint8
Array
write
write
String
c0data
Loading...
A growable byte buffer.