Method: ActiveSupport::MessagePack::Serializer#signature?

Defined in:
lib/active_support/message_pack/serializer.rb

#signature?(dumped) ⇒ Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/active_support/message_pack/serializer.rb', line 27

def signature?(dumped)
  dumped.getbyte(0) == SIGNATURE.getbyte(0) && dumped.getbyte(1) == SIGNATURE.getbyte(1)
end