Created
March 28, 2012 20:32
-
-
Save michelezonca/2230274 to your computer and use it in GitHub Desktop.
Revelation header generation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def __generate_header(self): | |
"Generates a header" | |
header = "rvl\x00" # magic string | |
header += "\x01" # data version | |
header += "\x00" # separator | |
header += "\x00\x04\x06" # application version TODO | |
header += "\x00\x00\x00" # separator | |
return header |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment