@ -25,7 +25,7 @@ def write_record(f, key, value):
key_size = len(key) + 1
value_size = len(value)
record_size = key_size + value_size + 4
f.write(struct.pack("<l", record_size))
f.write(struct.pack(">l", record_size))
f.write(key.encode())
f.write(b"\x00")
f.write(value)