projects
/
ton
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Commit initial version of the binary serializer/deserializer
[ton]
/
don
/
__init__.py
diff --git a/don/__init__.py
b/don/__init__.py
new file mode 100644
(file)
index 0000000..
ac70fdb
--- /dev/null
+++ b/
don/__init__.py
@@ -0,0
+1,8
@@
+import don.binary as binary
+import don.string as string
+
+def binary_to_string(b):
+ return string.serialize(binary.deserialize(b))
+
+def string_to_binary(s):
+ return binary.serialize(string.deserialize(s))