Class default<EntityTypeIDs>Abstract

Implements the external mapping functionality.

Type Parameters

  • EntityTypeIDs extends number

Hierarchy (View Summary)

Constructors

Properties

localID: number

The local (dense) ID within the model, that acts as a reference.

The model this came from.

expectedType: number = 0
query: number[] = ...

Accessors

  • get Dim(): number
  • Get the number of dimensions for this, some functions require every object to have this,

    The default value is 0.

    Returns number

    The number of dimensions.

  • get expressID(): undefined | number
  • Get the express ID for this, note that if an element is inlined, it will have not have an express ID.

    Returns undefined | number

    The express ID of this or undefined if there isn't one.

  • get isInline(): boolean
  • Is this an inline element or fully specified?

    Returns boolean

    Is this inline?

Methods

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • vtableOffset: number

      The offset in the vtable to extract from

    • optional: true

      Is this an optional field?

    Returns null | [Uint8Array, number]

    The extracted number.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • vtableOffset: number

      The offset in the vtable to extract from

    • optional: false

      Is this an optional field?

    Returns [Uint8Array, number]

    The extracted number.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: true

      Is this an optional field? (true)

    Returns null | boolean

    The extracted number or null if it's not supplied.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: false

      Is this an optional field? (false).

    Returns boolean

    The extracted number.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Type Parameters

    • ExtractionType

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • extractor: (
          buffer: Uint8Array,
          cursor: number,
          endCursor: number,
      ) => undefined | null | ExtractionType

      The function to be used for extraction.

    • optional: true

      Is this an optional field? (true)

    Returns null | ExtractionType

    The extracted value or null for optionals.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Type Parameters

    • ExtractionType

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • extractor: (
          buffer: Uint8Array,
          cursor: number,
          endCursor: number,
      ) => undefined | ExtractionType

      The function to be used for extraction.

    • optional: false

      Is this an optional field? (false)

    Returns ExtractionType

    The extracted value or null for optionals.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: true

      Is this an optional field?

    Returns null | boolean

    The extracted logical or null for optionals.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: false

      Is this an optional field?

    Returns boolean

    The extracted logical or null for optionals.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • vtableOffset: number

      The offset in the vtable to extract from

    • optional: true

      Whether this is a potentially optional field

    Returns null | number

    The extracted number.

  • Extract a number at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • vtableOffset: number

      The offset in the vtable to extract from

    • optional: false

      Whether this is a potentially optional field

    Returns number

    The extracted number.

  • Extract a parse buffer at a particular vtable offset.

    Parameters

    • offset: number
    • result: ParseBuffer
    • module: any
    • optional: boolean

    Returns boolean

    True if this extracts, false (usually because this is optional)

  • Extract a string at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: true

      Is this an optional field?

    Returns null | string

    The extracted string, or null if optional and this value isn't specified.

  • Extract a string at the particular vtable offset (i.e. the position in the matching step object).

    Used by other extraction methods with wrappers to perform semantically correct extraction.

    Parameters

    • offset: number

      The offset in the vtable to extract from

    • optional: false

      Is this an optional field?

    Returns string

    The extracted string, or null if optional and this value isn't specified.

  • Parameters

    • buffer: Uint8Array
    • cursor: number

    Returns { data: string; length: number }

    string and length

  • Convert this to a string (which is the equivalent to a reference or '#inline' for inline elements).

    Returns string

    Convert this to a string