Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BitString

BitString is the structure to use when you want an ASN.1 BIT STRING type. A bit string is padded up to the nearest byte in memory and the number of valid bits is recorded. Padding bits will be zero.

Hierarchy

  • BitString

Index

Constructors

Properties

Methods

Constructors

constructor

  • new BitString(buf: Buffer, bitLen: number): BitString

Properties

bitLen

bitLen: number

The length of bits

buf

buf: Buffer

The underlying buffer

Methods

at

  • at(i: number): number
  • Returns the value for the given bits offset.

    Parameters

    • i: number

      bits offet

    Returns number

rightAlign

  • rightAlign(): Buffer

Generated using TypeDoc