Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "pool"

Index

Variables

Const MASK_COMPACT

MASK_COMPACT: 1 = 1

Const MASK_SPLIT

MASK_SPLIT: 2 = 2

Const MEM_BLOCK_NEXT

MEM_BLOCK_NEXT: 1 = 1

Const MEM_BLOCK_SIZE

MEM_BLOCK_SIZE: 0 = 0

Const SIZEOF_MEM_BLOCK

SIZEOF_MEM_BLOCK: number = 2 * 4

Const SIZEOF_STATE

SIZEOF_STATE: number = 7 * 4

Const STATE_ALIGN

STATE_ALIGN: 4 = 4

Const STATE_END

STATE_END: 3 = 3

Const STATE_FLAGS

STATE_FLAGS: 5 = 5

Const STATE_FREE

STATE_FREE: 0 = 0

Const STATE_MIN_SPLIT

STATE_MIN_SPLIT: 6 = 6

Const STATE_TOP

STATE_TOP: 2 = 2

Const STATE_USED

STATE_USED: 1 = 1

Functions

Const blockDataAddress

  • blockDataAddress(blockAddress: number): number
  • Returns a block's data address, based on given alignment.

    Parameters

    • blockAddress: number

      -

    Returns number

Const blockSelfAddress

  • blockSelfAddress(dataAddress: number): number
  • Returns block start address for given data address and alignment.

    Parameters

    • dataAddress: number

      -

    Returns number

Generated using TypeDoc