Sha256: 1dfc3eb41aa0f6b94e462bb83ca31d1c7096ec1ec6f18acf7badd58267fc1ffe
Contents?: true
Size: 300 Bytes
Versions: 2
Compression:
Stored size: 300 Bytes
Contents
# encoding: utf-8 require "arr-pm/namespace" module ArrPM::V2::Format MAGIC = [0x8e, 0xad, 0xe8] MAGIC_LENGTH = MAGIC.count MAGIC_STRING = MAGIC.pack("C#{MAGIC_LENGTH}") module_function def valid_magic?(magic) magic = magic.bytes if magic.is_a?(String) magic == MAGIC end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arr-pm-0.0.12 | lib/arr-pm/v2/format.rb |
arr-pm-0.0.11 | lib/arr-pm/v2/format.rb |