# Class VulkanLWJGLHostAllocatorProxy

java.lang.Object
com.io7m.jcoronado.lwjgl.internal.VulkanLWJGLHostAllocatorProxy

All Implemented Interfaces:
  `AutoCloseable`

public final class VulkanLWJGLHostAllocatorProxy extends Object implements AutoCloseable
A holder for allocated callbacks.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `org.lwjgl.vulkan.VkAllocationCallbacks`
  `callbackBuffer()`
  `void`
  `close()`
  `static VulkanLWJGLHostAllocatorProxy`
  `create(org.lwjgl.system.MemoryStack stack, Optional<VulkanHostAllocatorType> allocator)`
  Create a proxy for the given allocator.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### create

    public static VulkanLWJGLHostAllocatorProxy create(org.lwjgl.system.MemoryStack stack, Optional<VulkanHostAllocatorType> allocator)
    Create a proxy for the given allocator.
    Parameters:
      `stack` - A stack allocator
      `allocator` - The host allocator
    Returns:
      A proxy

  - ### callbackBuffer

    public org.lwjgl.vulkan.VkAllocationCallbacks callbackBuffer()
    Returns:
      The callback buffer

  - ### close

    public void close()
    Specified by:
      `close` in interface `AutoCloseable`