class Memory::Wrapper
Public Class Methods
new(cache)
click to toggle source
Calls superclass method
# File lib/memory/sampler.rb, line 29 def initialize(cache) super() @cache = cache self.register_type(0x01, Allocation, packer: ->(instance){self.pack(instance.pack)}, unpacker: ->(data){Allocation.unpack(@cache, self.unpack(data))}, ) self.register_type(0x02, Symbol) end