summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorOwl <isaclien9752@gmail.com>2025-08-21 20:07:13 -0400
committerOwl <isaclien9752@gmail.com>2025-08-21 20:07:13 -0400
commitef4d0e08b2d312bcf3034aa3ae48436f5d8b56a5 (patch)
tree88c06847d16e29acdd743066b0781fc17ebde3eb /test.py
parent5fb5906f45a20652b8cbadc5657df9ca506f11db (diff)
downloadblenxy-ef4d0e08b2d312bcf3034aa3ae48436f5d8b56a5.tar.gz
blenxy-ef4d0e08b2d312bcf3034aa3ae48436f5d8b56a5.zip
all the stuff
Diffstat (limited to 'test.py')
-rw-r--r--test.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/test.py b/test.py
new file mode 100644
index 0000000..1d74b42
--- /dev/null
+++ b/test.py
@@ -0,0 +1,26 @@
+import smg_name_table_funcs
+
+# I think I am making my own way to handle bytes
+# ~ class owl_byte(int):
+ # ~ def __str__(self):
+ # ~ return "%0X" % (self)
+
+# I think I am making my own way to print bytes
+# the default printing is awful to look at and I need rapid inspection
+class owl_bytes(bytearray):
+ def __str__(self):
+ rtn = ""
+ for i in range(len(self)):
+ rtn += "%02X" % self[i]
+ rtn += " "
+ return rtn
+
+f = open("test.bin", "rb")
+byte_arr = owl_bytes(b"")
+byte = f.read(1)
+while (byte != b""):
+ byte_arr += byte
+ byte = f.read(1)
+f.close()
+
+print(byte_arr)