Class: Extism::Memory

Inherits:
Object
  • Object
show all
Defined in:
lib/extism.rb

Overview

Represents a “block” of memory in Extism. This memory is in the communication buffer b/w the guest in the host and technically lives in host memory.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(offset, len) ⇒ Memory

Returns a new instance of Memory.



54
55
56
57
# File 'lib/extism.rb', line 54

def initialize(offset, len)
  @offset = offset
  @len = len
end

Instance Attribute Details

#lenObject (readonly)

Returns the value of attribute len.



52
53
54
# File 'lib/extism.rb', line 52

def len
  @len
end

#offsetObject (readonly)

Returns the value of attribute offset.



52
53
54
# File 'lib/extism.rb', line 52

def offset
  @offset
end