PmrResource struct

Polymorphic memory resource.

Embed this as the first member of a custom resource, then cast a PmrResource * back to the derived pointer. The vtable has three slots. A later optional slot may be appended only when NULL means "unsupported".

Public variables

const PmrResourceVtable* vtable
Operations for this resource.

Variable documentation

const PmrResourceVtable* PmrResource::vtable

Operations for this resource.

Never NULL.