Options
All
  • Public
  • Public/Protected
  • All
Menu

Represent a single bit within a BitStructure as a JavaScript boolean.

NOTE User code should not invoke this constructor directly. Use the container {@link BitStructure#addBoolean|addBoolean} helper method.

param container

initializer for {@link BitField#container|container}.

param [property]

initializer for {@link Layout#property|property}.

Hierarchy

Index

Constructors

constructor

Properties

bits

bits: number

container

container: BitStructure

property

property: string

start

start: number

valueMask

valueMask: number

wordMask

wordMask: number

Methods

decode

  • decode(b?: Uint8Array, offset?: number): boolean

encode

  • encode(value: number | boolean): void

Generated using TypeDoc