From 48781c060407a672242cdc2b4eebdcb9bf9b3047 Mon Sep 17 00:00:00 2001 From: JoshuaMK <60854312+JoshuaMKW@users.noreply.github.com> Date: Mon, 17 Aug 2020 21:26:59 -0500 Subject: [PATCH] Delete access.py --- lib/access.py | 61 --------------------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 lib/access.py diff --git a/lib/access.py b/lib/access.py deleted file mode 100644 index 7b4226f..0000000 --- a/lib/access.py +++ /dev/null @@ -1,61 +0,0 @@ -import struct - -def read_sbyte(f): - return struct.unpack("b", f.read(1))[0] - -def write_sbyte(f): - struct.unpack("b", f.read(1)) - -def read_sint16(f): - return struct.unpack(">h", f.read(4))[0] - -def write_sint16(f, val): - f.write(struct.pack(">h", val)) - -def read_sint32(f): - return struct.unpack(">i", f.read(4))[0] - -def write_sint32(f, val): - f.write(struct.pack(">i", val)) - -def read_float(f): - return struct.unpack(">f", f.read(4))[0] - -def write_float(f, val): - f.write(struct.pack(">f", val)) - -def read_double(f): - return struct.unpack(">d", f.read(4))[0] - -def write_double(f, val): - f.write(struct.pack(">d", val)) - -def read_ubyte(f): - return struct.unpack("B", f.read(1))[0] - -def write_ubyte(f): - struct.unpack("B", f.read(1)) - -def read_uint16(f): - return struct.unpack(">H", f.read(4))[0] - -def write_uint16(f, val): - f.write(struct.pack(">H", val)) - -def read_uint32(f): - return struct.unpack(">I", f.read(4))[0] - -def write_uint32(f, val): - f.write(struct.pack(">I", val)) - -def read_float(f): - return struct.unpack(">f", f.read(4))[0] - -def write_float(f, val): - f.write(struct.pack(">f", val)) - -def read_double(f): - return struct.unpack(">d", f.read(4))[0] - -def write_double(f, val): - f.write(struct.pack(">d", val)) \ No newline at end of file