projects
/
ton
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Commit initial version of the binary serializer/deserializer
[ton]
/
don
/
__init__.py
1
import don.binary as binary
2
import don.string as string
3
4
def binary_to_string(b):
5
return string.serialize(binary.deserialize(b))
6
7
def string_to_binary(s):
8
return binary.serialize(string.deserialize(s))