Class TransientNativeMemoryIO


final class TransientNativeMemoryIO extends BoundedNativeMemoryIO
  • Field Details

  • Constructor Details

    • TransientNativeMemoryIO

      private TransientNativeMemoryIO(Ruby runtime, Object sentinel, long address, int size)
  • Method Details

    • allocateAligned

      static MemoryIO allocateAligned(Ruby runtime, int size, int align, boolean clear)
      Allocates native memory, aligned to a minimum boundary.
      Parameters:
      runtime - The Ruby runtime
      size - The number of bytes to allocate
      align - The minimum alignment of the memory
      clear - Whether the memory should be cleared (zeroed)
      Returns:
      A new AllocatedDirectMemoryIO
    • align

      private static long align(long offset, long align)