Class: Extism::Memory
- Inherits:
-
Object
- Object
- Extism::Memory
- 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
-
#len ⇒ Object
readonly
Returns the value of attribute len.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
Instance Method Summary collapse
-
#initialize(offset, len) ⇒ Memory
constructor
A new instance of Memory.
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
#len ⇒ Object (readonly)
Returns the value of attribute len.
52 53 54 |
# File 'lib/extism.rb', line 52 def len @len end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
52 53 54 |
# File 'lib/extism.rb', line 52 def offset @offset end |