Module: ArrPM::V2::Format
- Defined in:
- lib/arr-pm/v2/format.rb
Constant Summary collapse
- MAGIC =
[0x8e, 0xad, 0xe8]
- MAGIC_LENGTH =
MAGIC.count
- MAGIC_STRING =
MAGIC.pack("C#{MAGIC_LENGTH}")
Class Method Summary collapse
Class Method Details
.valid_magic?(magic) ⇒ Boolean
11 12 13 14 15 |
# File 'lib/arr-pm/v2/format.rb', line 11 def valid_magic?(magic) magic = magic.bytes if magic.is_a?(String) magic == MAGIC end |