Class: Ignis::Memory::PoolMemoryResource::Block

Inherits:
Struct
  • Object
show all
Defined in:
lib/nvruby/memory/pool_memory_resource.rb

Overview

Block header for tracking allocations in the pool

Instance Attribute Summary collapse

Instance Attribute Details

#freeObject

Returns the value of attribute free

Returns:

  • (Object)

    the current value of free



18
19
20
# File 'lib/nvruby/memory/pool_memory_resource.rb', line 18

def free
  @free
end

#ptrObject

Returns the value of attribute ptr

Returns:

  • (Object)

    the current value of ptr



18
19
20
# File 'lib/nvruby/memory/pool_memory_resource.rb', line 18

def ptr
  @ptr
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



18
19
20
# File 'lib/nvruby/memory/pool_memory_resource.rb', line 18

def size
  @size
end