_BitStringHelperInternal
Index
Constructors
constructor
Returns _BitStringHelperInternal
Properties
staticCHAR_BITS
staticCHAR_BYTES
staticCHAR_MASK
staticSAFE_INTEGER_BITS
Methods
staticbase64ToU16String
Converts a base64 string obtained from calling _BitStringHelperInternal.u16ArrayToBase64 into a string which the BitStringReader can read.
Parameters
b64Str: string
Returns string
staticcheckBitsCountCorrect
A helper checking user-provided
bitsrange.Parameters
bits: number
funcName: string
Returns void
staticgetMask
Parameters
bits: number
Returns number
An integer mask with
bitslower bits set to 1.
statictwosComplementToSigned
Parameters
uval: number
a non-negative integer
bits: number
Returns number
a signed integer from an unsigned interpretation of a
bits-long twos complement integeruval.
statictwosComplementToUnsigned
Parameters
val: number
a signed integer
bits: number
Returns number
an unsigned
bits-long twos complement interpretation of a given signed integer.
staticu16ArrayToBase64
Converts a given array of unsigned 16-bit integers into a base64 string.
Parameters
array: number[]
Returns string
Internal functions used by the module.