Class: ArrowFormat::Org::Apache::Arrow::Flatbuf::FixedSizeBinary

Inherits:
FlatBuffers::Table
  • Object
show all
Defined in:
lib/arrow-format/org/apache/arrow/flatbuf/fixed_size_binary.rb

Constant Summary collapse

FIELDS =
{
  byte_width: ::FlatBuffers::Field.new(:byte_width, 0, 4, :int, 0),
}
Data =
define_data_class

Instance Method Summary collapse

Instance Method Details

#byte_widthObject

Number of bytes per value



22
23
24
25
26
27
# File 'lib/arrow-format/org/apache/arrow/flatbuf/fixed_size_binary.rb', line 22

def byte_width
  field_offset = @view.unpack_virtual_offset(4)
  return 0 if field_offset.zero?

  @view.unpack_int(field_offset)
end