Skip to main content

Interface: NativeBuffer

A managed memory pointer to a native platform buffer

Properties​

pointer​

• pointer: bigint

A uint64_t/uintptr_t to the native platform buffer.

  • On iOS; this points to a CVPixelBufferRef
  • On Android; this points to a AHardwareBuffer*

Defined in​

types/Frame.ts:118

Methods​

delete​

â–¸ delete(): void

Delete this reference to the platform buffer again. There might still be other references, so it does not guarantee buffer deletion.

This must always be called, otherwise the pipeline will stall.

Returns​

void

Defined in​

types/Frame.ts:125