Version

1.0.0

Since

1.0.5

Hierarchy

  • BitString

Constructors

Accessors

  • get HEX(): string
  • Returns string

  • get Length(): number
  • Returns number

Methods

  • AnyBit(): boolean
  • Returns boolean

  • Parameters

    Returns boolean

  • GetBit(offset: number, defaultVal?: boolean): boolean
  • Since

    1.1.20

    Version

    2019-04-01

    Parameters

    • offset: number
    • defaultVal: boolean = false

    Returns boolean

  • LeftRotate(n: number, bits?: number): BitString
  • Parameters

    • n: number
    • bits: number = 64

    Returns BitString

  • Since

    1.1.20

    Version

    2019-04-01

    Returns BitString

  • Parameters

    • Optional bits: number

    Returns BitString

  • RightRotate(n: number, bits?: number): BitString
  • Parameters

    • n: number
    • bits: number = 64

    Returns BitString

  • SetBit(offset: number, val: boolean): BitString
  • Set some bit

    Parameters

    • offset: number

      right to left, start from 1

    • val: boolean

      true or false

    Returns BitString

  • Parameters

    • bytes: number = 8

    Returns BitString

  • ToBytes(bits?: number): number[]
  • Parameters

    • Optional bits: number

    Returns number[]

  • ToNumber(): number
  • Returns number

  • Parameters

    Returns string

  • Parameters

    • Rest ...bytes: number[]

    Returns BitString

  • Initialize2d(x: number, y: number): BitString[][]
  • Parameters

    • x: number
    • y: number

    Returns BitString[][]

Generated using TypeDoc