Class Slice

Slice is a class that allows to read cell data

Hierarchy

  • Slice

Constructors

Properties

[SymbolInspect]: (() => string)

Type declaration

    • (): string
    • Returns string

_reader: any
_refs: any

Accessors

  • get remainingBits(): number
  • Get remaining bits

    Returns number

  • get remainingRefs(): number
  • Get remaining refs

    Returns number

Methods

  • Returns

    Returns Builder

  • Convert slice to cell

    Returns Cell

  • Clone slice

    Returns

    cloned slice

    Returns Slice

  • Checks if slice is empty

    Returns void

  • Load internal Address

    Returns

    Address

    Returns Address

  • Load a single bit

    Returns

    true or false depending on the bit value

    Returns boolean

  • Load bits as a new BitString

    Returns

    new BitString

    Parameters

    • bits: number

      number of bits to read

    Returns BitString

  • Load byte buffer

    Returns

    Buffer

    Parameters

    • bytes: number

      number of bytes to load

    Returns Buffer

  • Load coins

    Returns

    coins value

    Returns bigint

  • Load external address

    Returns

    ExternalAddress

    Returns ExternalAddress

  • Load int

    Returns

    int value

    Parameters

    • bits: number

      number of bits to read

    Returns number

  • Load int

    Returns

    int value

    Parameters

    • bits: number

      number of bits to read

    Returns bigint

  • Load optional internal Address

    Returns

    Address or null

    Returns null | Address

  • Load maybe coins

    Returns

    coins value or null

    Returns null | bigint

  • Load optional external address

    Returns

    ExternalAddress or null

    Returns null | ExternalAddress

  • Load optional reference

    Returns

    Cell or null

    Returns null | Cell

  • Load maybe string tail from ref

    Returns

    string or null

    Returns null | string

  • Load maybe string tail

    Returns

    string or null

    Returns null | string

  • Load reference

    Returns

    Cell

    Returns Cell

  • Load string tail from ref

    Returns

    string

    Returns string

  • Load string tail

    Returns string

  • Load uint

    Returns

    uint value

    Parameters

    • bits: number

      number of bits to read

    Returns number

  • Load uint

    Returns

    uint value

    Parameters

    • bits: number

      number of bits to read

    Returns bigint

  • Load varint

    Returns

    varint value

    Parameters

    • bits: number

      number of bits to read in header

    Returns number

  • Load varint

    Returns

    varint value

    Parameters

    • bits: number

      number of bits to read in header

    Returns bigint

  • Load varuint

    Returns

    varuint value

    Parameters

    • bits: number

      number of bits to read in header

    Returns number

  • Load varuint

    Returns

    varuint value

    Parameters

    • bits: number

      number of bits to read in header

    Returns bigint

  • Preload a signle bit

    Returns

    true or false depending on the bit value

    Returns boolean

  • Preload bits as a new BitString

    Returns

    new BitString

    Parameters

    • bits: number

      number of bits to read

    Returns BitString

  • Load byte buffer

    Returns

    Buffer

    Parameters

    • bytes: number

      number of bytes to load

    Returns Buffer

  • Preload coins

    Returns

    coins value

    Returns bigint

  • Preload int

    Returns

    int value

    Parameters

    • bits: number

      number of bits to read

    Returns number

  • Preload int

    Returns

    int value

    Parameters

    • bits: number

      number of bits to read

    Returns bigint

  • Preload optional reference

    Returns

    Cell or null

    Returns null | Cell

  • Preload reference

    Returns

    Cell

    Returns Cell

  • Preload uint

    Returns

    uint value

    Parameters

    • bits: number

      number of bits to read

    Returns number

  • Preload uint

    Returns

    uint value

    Parameters

    • bits: number

      number of bits to read

    Returns bigint

  • Preload varint

    Returns

    varint value

    Parameters

    • bits: number

      number of bits to read in header

    Returns number

  • Preload varint

    Returns

    varint value

    Parameters

    • bits: number

      number of bits to read in header

    Returns bigint

  • Preload varuint

    Returns

    varuint value

    Parameters

    • bits: number

      number of bits to read in header

    Returns number

  • Preload varuint

    Returns

    varuint value

    Parameters

    • bits: number

      number of bits to read in header

    Returns bigint

  • Skip bits

    Parameters

    • bits: number

    Returns Slice

  • Print slice as string by converting it to cell

    Returns

    string

    Returns string

Generated using TypeDoc