Class: Capnp::Data

Inherits:
BufferList show all
Defined in:
lib/capnp/runtime/list/buffer/data.rb

Constant Summary collapse

Elem =
type_member { {fixed: Integer} }

Instance Attribute Summary

Attributes inherited from BufferList

#element_type, #length

Instance Method Summary collapse

Methods inherited from BufferList

from_pointer, #initialize

Methods included from List

#[], #each, #length

Constructor Details

This class inherits a constructor from Capnp::BufferList

Instance Method Details

#to_objObject



18
# File 'lib/capnp/runtime/list/buffer/data.rb', line 18

def to_obj = value

#valueObject



10
# File 'lib/capnp/runtime/list/buffer/data.rb', line 10

def value = @data.read_bytes(0, @length)