Helios API/ API Reference/ Classes/

BitWriter

BitWriter turns a string of '0's and '1's into a list of bytes. Finalization pads the bits using '0*1' if not yet aligned with the byte boundary.

Index

Constructors

constructor

new BitWriter()

Methods

pop

pop(n): string

Pop n bits of the end

Parameters

NameType
nnumber

Returns

string