fromAddress static method

Vst3AudioBufferReader? fromAddress(
  1. int address
)

Attaches directly to a shared memory block using an in-process raw address.

Implementation

static Vst3AudioBufferReader? fromAddress(int address) {
  if (address == 0) return null;
  final ptr = Pointer<Uint8>.fromAddress(address);
  final magic = Pointer<Uint32>.fromAddress(ptr.address).value;
  return (magic == vst3ShmMagic) ? Vst3AudioBufferReader._(ptr) : null;
}