private static void *__CopyValue(global::jemalloc.ExtentHooks.__Internal native) { var ret = Marshal.AllocHGlobal(sizeof(global::jemalloc.ExtentHooks.__Internal)); *(global::jemalloc.ExtentHooks.__Internal *)ret = native; return(ret.ToPointer()); }
private ExtentHooks(global::jemalloc.ExtentHooks.__Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; }
internal static global::jemalloc.ExtentHooks __CreateInstance(global::jemalloc.ExtentHooks.__Internal native, bool skipVTables = false) { return(new global::jemalloc.ExtentHooks(native, skipVTables)); }