Skip to content

Instantly share code, notes, and snippets.

/example2.rb Secret

Created June 29, 2016 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/447adff2f7dd75d8fa271d52c6c7e060 to your computer and use it in GitHub Desktop.
Save anonymous/447adff2f7dd75d8fa271d52c6c7e060 to your computer and use it in GitHub Desktop.
chunk_actual_count = reader.message[8..11].unpack('L<')
chunk_actual_count = (reader.message[ 8].ord << 0) \
| (reader.message[ 9].ord << 8) \
| (reader.message[10].ord << 16) \
| (reader.message[11].ord << 24)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment