TManagedMemory is defined in qtx.memory.pas and provides several ways to access its underlying data:


  • Buffer (JArrayBuffer): The raw, underlying JavaScript ArrayBuffer.
  • TypedArray (JUint8Array): A fast, byte-level "view" of the buffer, allowing direct byte manipulation.
  • View (JDataView): A JDataView allows you to read and write multi-byte types (like int32 or float32) at specific offsets, automatically handling endianness.
  • Item[index] (Default Property): The simplest way to get or set a single byte at a specific position.