Class: Bytepack::Symbol
- Defined in:
- lib/bytepack/basic/symbol.rb
Constant Summary
Constants inherited from Varbinary
Varbinary::DIRECTIVE, Varbinary::LENGTH_TYPE, Varbinary::NULL_INDICATOR
Class Method Summary collapse
Methods inherited from Varbinary
Methods inherited from Basic
bytesToInt, intToBytes, preprocess
Methods inherited from Struct
classifyDataType, config, packingDataType, single_type_array?, testpacking
Class Method Details
.unpack(bytes, offset = 0) ⇒ Object
5 6 7 8 9 |
# File 'lib/bytepack/basic/symbol.rb', line 5 def unpack(bytes, offset = 0) vb = super(bytes, offset) vb[0] = vb[0].to_sym unless vb[0].nil? vb end |