2 # Encode an integer in little endian format in a file.
4 # Copyright (C) 2011 Kevin O'Connor <kevin@koconnor.net>
6 # This file may be distributed under the terms of the GNU GPLv3 license.
12 filename = sys.argv[1]
13 value = int(sys.argv[2], 0)
15 outval = struct.pack('<Q', value)
16 f = open(filename, 'wb')
20 if __name__ == '__main__':