Class ModelData

Note

Construct via the Class AniraWeb factory in most cases: aniraWeb.ModelData(...) rather than new ModelData(...). The factory threads the WASM instance through for you.

class ModelData(wasmInstance, bufferOrPath, backend)

TypeScript wrapper for anira::ModelData Thread-safe C API wrapper

Extends:
  • BaseWrapper

Arguments:
  • wasmInstance (AniraWasmInstance)

  • bufferOrPath (string | ArrayBuffer)

  • backend (number)

destroy()

Free the underlying C++ object. See Lifecycle and Cleanup for when to call this.

equals(other)
Arguments:
  • other (PossiblePointer<ModelData>)

Returns:

boolean

getBackend()

Mirrors the anira::ModelData::m_backend field.

Returns:

number

getDataPtr()

Mirrors the anira::ModelData::m_data field.

Returns:

number

getSize()

Mirrors the anira::ModelData::m_size field.

Returns:

number

isBinary()

Mirrors the anira::ModelData::m_is_binary field.

Returns:

boolean

notEquals(other)
Arguments:
  • other (PossiblePointer<ModelData>)

Returns:

boolean