Skip to content

Instantly share code, notes, and snippets.

@salrashid123
Created August 26, 2017 20:17
Show Gist options
  • Save salrashid123/c853e8426c09a470c9cfb9d0e05e6251 to your computer and use it in GitHub Desktop.
Save salrashid123/c853e8426c09a470c9cfb9d0e05e6251 to your computer and use it in GitHub Desktop.
Delimited-Message → Compressed-Flag Message-Length Message
Compressed-Flag → 0 / 1 # encoded as 1 byte unsigned integer
Message-Length → {length of Message} # encoded as 4 byte unsigned integer
Message → *{binary octet}
compression:
00
message-length =>11(decimal) octets =>b(hex)
0000000b
msg:
0a046a6f686e1203646f65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment