ordspv
Docs home
GitHub
Preparing search index...
@ordspv/core
ByteWriter
Class ByteWriter
Append-only writer producing Bitcoin wire serializations.
Index
Constructors
constructor
Methods
to
Bytes
write
Bytes
write
I32
LE
write
U32
LE
write
U64
LE
write
U8
write
Var
Int
Constructors
constructor
new
ByteWriter
()
:
ByteWriter
Returns
ByteWriter
Methods
to
Bytes
toBytes
()
:
Uint8Array
Returns
Uint8Array
write
Bytes
writeBytes
(
b
:
Uint8Array
)
:
this
Parameters
b
:
Uint8Array
Returns
this
write
I32
LE
writeI32LE
(
v
:
number
)
:
this
Parameters
v
:
number
Returns
this
write
U32
LE
writeU32LE
(
v
:
number
)
:
this
Parameters
v
:
number
Returns
this
write
U64
LE
writeU64LE
(
v
:
bigint
)
:
this
Parameters
v
:
bigint
Returns
this
write
U8
writeU8
(
v
:
number
)
:
this
Parameters
v
:
number
Returns
this
write
Var
Int
writeVarInt
(
v
:
number
|
bigint
)
:
this
Parameters
v
:
number
|
bigint
Returns
this
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
to
Bytes
write
Bytes
write
I32
LE
write
U32
LE
write
U64
LE
write
U8
write
Var
Int
Docs home
GitHub
ordspv
Loading...
Append-only writer producing Bitcoin wire serializations.