class HMap::HMapBucket
HMapBucket
structure. @see clang.llvm.org/doxygen/structclang_1_1HMapHeader.html @abstract
Constants
- FORMAT
- SIZEOF
Attributes
key[RW]
perfix[RW]
suffix[RW]
uuid[RW]
Public Class Methods
new(key, perfix, suffix)
click to toggle source
Calls superclass method
# File lib/cocoapods-hmap/hmap_struct.rb, line 124 def initialize(key, perfix, suffix) @key = key @perfix = perfix @suffix = suffix super() end
Public Instance Methods
serialize()
click to toggle source
@return [String] the serialized fields of the mafile
# File lib/cocoapods-hmap/hmap_struct.rb, line 132 def serialize format = Utils.specialize_format(FORMAT, SWAPPED) [key, perfix, suffix].pack(format) end
to_a()
click to toggle source
# File lib/cocoapods-hmap/hmap_struct.rb, line 137 def to_a [key, perfix, suffix] end
to_h()
click to toggle source
Calls superclass method
HMap::HMapStructure#to_h
# File lib/cocoapods-hmap/hmap_struct.rb, line 141 def to_h { 'key' => key, 'perfix' => perfix, 'suffix' => suffix }.merge super end