Module: Kobako::Codec::_HandleTable

Defined in:
sig/kobako/codec.rbs

Overview

The Handle allocator/resolver a wire walk works against: alloc registers a non-wire-representable object and returns its Handle, fetch resolves a wire Handle id back to the live object. The Sandbox's Kobako::Catalog::Handles is the production conformer; modelled structurally so the Codec and Transport tiers need no upward dependency on Catalog.

Instance Method Summary collapse

Instance Method Details

#allocKobako::Handle

Parameters:

  • object (Object)

Returns:



13
# File 'sig/kobako/codec.rbs', line 13

def alloc: (untyped object) -> Kobako::Handle

#fetchObject

Parameters:

  • id (Integer)

Returns:

  • (Object)


15
# File 'sig/kobako/codec.rbs', line 15

def fetch: (Integer id) -> untyped