/dports/games/rlvm/rlvm-release-0.14-77-gfabf134a/scripts/ |
H A D | dumphik.py | 11 length = struct.unpack("i", f.read(0x4))[0] 13 return struct.unpack(format_str, f.read(length)) 16 10100: lambda f: struct.unpack("i", f.read(0x4)), 17 10101: lambda f: struct.unpack("i", f.read(0x4)), 18 10102: lambda f: struct.unpack("i", f.read(0x4)), 19 10103: lambda f: struct.unpack("ii", f.read(0x8)), 20 20000: lambda f: struct.unpack("i", f.read(0x4)), 21 20001: lambda f: struct.unpack("i", f.read(0x4)), 24 21000: lambda f: struct.unpack("i", f.read(0x4)), 27 21003: lambda f: struct.unpack("i", f.read(0x4)), [all …]
|
/dports/games/widelands/widelands-build21/utils/syncstream/ |
H A D | syncexcerpt-to-text.py | 18 print(' Serial:', struct.unpack('<I', f.read(4))[0]) 23 print(' Type:', struct.unpack('<B', f.read(1))[0]) 24 print(' Index:', struct.unpack('<B', f.read(1))[0]) 25 print(' Serial:', struct.unpack('<I', f.read(4))[0]) 30 print(' Size:', struct.unpack('<I', f.read(4))[0]) 47 print(' Seed:', struct.unpack('<I', f.read(4))[0]) 52 print(' Number:', struct.unpack('<I', f.read(4))[0]) 57 print(' Serial:', struct.unpack('<I', f.read(4))[0]) 114 % (str(f.read(struct.unpack('<I', f.read(4))[0]).decode()), 115 str(f.read(struct.unpack('<I', f.read(4))[0]).decode())), [all …]
|
/dports/math/py-yt/yt-4.0.1/yt/frontends/amrvac/ |
H A D | datfile_utils.py | 24 [h["datfile_version"]] = struct.unpack(fmt, istream.read(struct.calcsize(fmt))) 31 hdr = struct.unpack(fmt, istream.read(struct.calcsize(fmt))) 59 struct.unpack(fmt, istream.read(struct.calcsize(fmt))), dtype=bool 64 hdr = struct.unpack(fmt, istream.read(struct.calcsize(fmt))) 75 hdr = struct.unpack(fmt, istream.read(struct.calcsize(fmt))) 81 hdr = struct.unpack(fmt, istream.read(struct.calcsize(fmt))) 86 [n_pars] = struct.unpack(fmt, istream.read(struct.calcsize(fmt))) 90 vals = struct.unpack(fmt, istream.read(struct.calcsize(fmt))) 93 names = struct.unpack(fmt, istream.read(struct.calcsize(fmt))) 146 d = struct.unpack(fmt, istream.read(struct.calcsize(fmt))) [all …]
|
/dports/graphics/py-imagesize/imagesize-1.3.0/build/lib/ |
H A D | imagesize.py | 133 size = struct.unpack('>H', fhandle.read(2))[0] - 2 136 height, width = struct.unpack('>HH', fhandle.read(4)) 143 height, width = struct.unpack('>LL', fhandle.read(8)) 150 ifdsize = struct.unpack(">H", fhandle.read(2))[0] 152 tag, datatype, count, data = struct.unpack(">HHLL", fhandle.read(12)) 174 ifdsize = struct.unpack("<H", fhandle.read(2))[0] 176 tag, datatype, count, data = struct.unpack("<HHLL", fhandle.read(12)) 192 ifdsize = struct.unpack("<Q", fhandle.read(8))[0] 194 tag, datatype, count, data = struct.unpack("<HHQQ", fhandle.read(20)) 329 size = struct.unpack('>H', fhandle.read(2))[0] - 2 [all …]
|
/dports/graphics/py-imagesize/imagesize-1.3.0/ |
H A D | imagesize.py | 133 size = struct.unpack('>H', fhandle.read(2))[0] - 2 136 height, width = struct.unpack('>HH', fhandle.read(4)) 143 height, width = struct.unpack('>LL', fhandle.read(8)) 150 ifdsize = struct.unpack(">H", fhandle.read(2))[0] 152 tag, datatype, count, data = struct.unpack(">HHLL", fhandle.read(12)) 174 ifdsize = struct.unpack("<H", fhandle.read(2))[0] 176 tag, datatype, count, data = struct.unpack("<HHLL", fhandle.read(12)) 192 ifdsize = struct.unpack("<Q", fhandle.read(8))[0] 194 tag, datatype, count, data = struct.unpack("<HHQQ", fhandle.read(20)) 329 size = struct.unpack('>H', fhandle.read(2))[0] - 2 [all …]
|
/dports/graphics/py-imagesize/stage/usr/local/lib/python3.8/site-packages/ |
H A D | imagesize.py | 133 size = struct.unpack('>H', fhandle.read(2))[0] - 2 136 height, width = struct.unpack('>HH', fhandle.read(4)) 143 height, width = struct.unpack('>LL', fhandle.read(8)) 150 ifdsize = struct.unpack(">H", fhandle.read(2))[0] 152 tag, datatype, count, data = struct.unpack(">HHLL", fhandle.read(12)) 174 ifdsize = struct.unpack("<H", fhandle.read(2))[0] 176 tag, datatype, count, data = struct.unpack("<HHLL", fhandle.read(12)) 192 ifdsize = struct.unpack("<Q", fhandle.read(8))[0] 194 tag, datatype, count, data = struct.unpack("<HHQQ", fhandle.read(20)) 329 size = struct.unpack('>H', fhandle.read(2))[0] - 2 [all …]
|
/dports/finance/py-python-obelisk/python-obelisk-0.1.3/obelisk/ |
H A D | serialize.py | 22 return struct.unpack(b"<I", f.read(4))[0] 32 nit = struct.unpack(b"<B", f.read(1))[0] 34 nit = struct.unpack(b"<H", f.read(2))[0] 36 nit = struct.unpack(b"<I", f.read(4))[0] 38 nit = struct.unpack(b"<Q", f.read(8))[0] 63 t = struct.unpack(b"<I", f.read(4))[0] 112 length = struct.unpack(b"<B", f.read(1))[0] 119 return struct.unpack(b"<Q", f.read(8))[0] 169 nit = struct.unpack(b"<B", f.read(1))[0] 199 nit = struct.unpack(b"<B", f.read(1))[0] [all …]
|
/dports/graphics/appleseed/appleseed-2.1.0-beta/sandbox/share/ |
H A D | aspaths2json.py | 122 version, = struct.unpack('<H', input_file.read(2)) 128 total_path_count, = struct.unpack('<L', input_file.read(4)) 132 index_width, = struct.unpack('<H', input_file.read(2)) 133 index_height, = struct.unpack('<H', input_file.read(2)) 141 path_count, = struct.unpack('<H', input_file.read(2)) 150 name_count, = struct.unpack('<H', input_file.read(2)) 152 name_length, = struct.unpack('<H', input_file.read(2)) 163 ndc_x, = struct.unpack('<f', input_file.read(4)) 164 ndc_y, = struct.unpack('<f', input_file.read(4)) 170 vertex_count, = struct.unpack('<H', input_file.read(2)) [all …]
|
/dports/comms/uhd/uhd-90ce6062b6b5df2eddeee723777be85108e4e7c7/mpm/python/usrp_mpm/ |
H A D | fpga_bit_to_bin.py | 11 import struct 61 length = struct.unpack('>H', bitfile.read(2))[0] 68 length = struct.unpack('>H', bitfile.read(2))[0] # Should be 1 74 length = struct.unpack('>H', bitfile.read(2))[0] 81 key = bitfile.read(1) 84 length = struct.unpack('>H', bitfile.read(2))[0] 93 key = bitfile.read(1) 96 length = struct.unpack('>H', bitfile.read(2))[0] 102 key = bitfile.read(1) 105 length = struct.unpack('>H', bitfile.read(2))[0] [all …]
|
/dports/net-p2p/py-nicotine-plus/nicotine-plus-3.2.0/pynicotine/geoip/ |
H A D | ip2location.py | 43 self._dbtype = struct.unpack('B', self._f.read(1))[0] 44 self._dbcolumn = struct.unpack('B', self._f.read(1))[0] 45 self._dbyear = struct.unpack('B', self._f.read(1))[0] 46 self._dbmonth = struct.unpack('B', self._f.read(1))[0] 47 self._dbday = struct.unpack('B', self._f.read(1))[0] 48 self._ipv4dbcount = struct.unpack('<I', self._f.read(4))[0] 49 self._ipv4dbaddr = struct.unpack('<I', self._f.read(4))[0] 50 self._ipv6dbcount = struct.unpack('<I', self._f.read(4))[0] 51 self._ipv6dbaddr = struct.unpack('<I', self._f.read(4))[0] 60 return struct.unpack('<I', self._f.read(4))[0] [all …]
|
/dports/security/john/john-1.9.0-jumbo-1/run/ |
H A D | ccache2john.py | 91 self.version, = struct.unpack(">H", f.read(2)) 133 self.length, = struct.unpack(">L", f.read(4)) 331 keylen, = struct.unpack('>B', f.read(1)) 363 length, = struct.unpack(">b", f.read(1)) 397 rem_length, = struct.unpack(">B", f.read(1)) 400 l, = struct.unpack(">B", f.read(1)) 481 strtime, = struct.unpack(">15s", f.read(15)) 505 length, = struct.unpack(">B", f.read(1)) 548 l, = struct.unpack(">B", f.read(1)) 674 ticketlen, = struct.unpack(">H", f.read(2)) [all …]
|
H A D | keystore2john.py | 70 import struct 87 data = fd.read() 91 buf = fd.read(4) 92 xMagic = struct.unpack("> I", buf)[0] 94 xVersion = struct.unpack("> I", buf)[0] 101 count = struct.unpack("> I", buf)[0] 105 tag = struct.unpack("> I", buf)[0] 120 keysize = struct.unpack("> I", buf)[0] 125 numOfCerts = struct.unpack("> I", buf)[0] 137 certsize = struct.unpack("> I", buf)[0] [all …]
|
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/xfeatures2d/samples/ |
H A D | export-boostdesc.py | 94 nDim = struct.unpack( '<i', f.read(4) )[0] 102 nWLs = struct.unpack( '<i', f.read(4) )[0] 141 nWLs = struct.unpack( '<i', f.read(4) )[0] 152 thresh = struct.unpack( '<f', f.read(4) )[0] 153 orient = struct.unpack( '<i', f.read(4) )[0] 155 y_min = struct.unpack( '<i', f.read(4) )[0] 156 y_max = struct.unpack( '<i', f.read(4) )[0] 157 x_min = struct.unpack( '<i', f.read(4) )[0] 158 x_max = struct.unpack( '<i', f.read(4) )[0] 160 alpha = struct.unpack( '<f', f.read(4) )[0] [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/db-lib/db/private/postgresql/ |
H A D | message.rkt | 103 ;; read-int16 : port -> integer 104 (define (io:read-int16 port) 108 (define (io:read-uint16 port) 111 ;; read-int32 : port -> integer 112 (define (io:read-int32 port) 126 ;; read-byte : port -> byte 127 (define (io:read-byte port) 128 (read-byte port)) 130 ;; read-byte : port-> char 136 (read-bytes n port)) [all …]
|
/dports/games/scummvm-tools/scummvm-tools-2.5.0/engines/petka/petka/ |
H A D | saves.py | 5 import array, struct, io 20 data = f.read(8) 21 self.part, self.chap = struct.unpack("<2I", data) 42 hz3 = struct.unpack("<I", data)[0] 49 strlen = struct.unpack("<I", data)[0] 59 recs = struct.unpack("<iB7i", data) 67 invlen = struct.unpack("<I", data)[0] 76 charpos = struct.unpack("<4I", data) 80 dlgoplen = struct.unpack("<I", data)[0] 89 struct.unpack("<5I", data) [all …]
|
/dports/databases/py-asyncmy/asyncmy-0.2.3/asyncmy/replication/ |
H A D | packets.py | 254 byte = struct.pack("!B", self.read(1)) 260 a, b, c = struct.unpack("BBB", self.read(3)) 274 return struct.unpack("<B", self.read(1))[0] 277 return struct.unpack("<h", self.read(2))[0] 280 return struct.unpack("<H", self.read(2))[0] 287 return struct.unpack("<I", self.read(4))[0] 290 return struct.unpack("<i", self.read(4))[0] 293 a, b = struct.unpack("<BI", self.read(5)) 297 a, b = struct.unpack(">IB", self.read(5)) 309 return struct.unpack("<Q", self.read(8))[0] [all …]
|
/dports/emulators/qemu60/qemu-6.0.0/meson/mesonbuild/scripts/ |
H A D | depfixer.py | 65 self.val = struct.unpack(self.XWord, ifile.read(self.XWordSize))[0] 68 self.val = struct.unpack(self.Word, ifile.read(self.WordSize))[0] 86 self.sh_name = struct.unpack(self.Word, ifile.read(self.WordSize))[0] 88 self.sh_type = struct.unpack(self.Word, ifile.read(self.WordSize))[0] 95 self.sh_addr = struct.unpack(self.Addr, ifile.read(self.AddrSize))[0] 97 self.sh_offset = struct.unpack(self.Off, ifile.read(self.OffSize))[0] 104 self.sh_link = struct.unpack(self.Word, ifile.read(self.WordSize))[0] 106 self.sh_info = struct.unpack(self.Word, ifile.read(self.WordSize))[0] 168 self.e_ident = struct.unpack('16s', self.bf.read(16))[0] 173 self.e_phoff = struct.unpack(self.Off, self.bf.read(self.OffSize))[0] [all …]
|
/dports/emulators/qemu5/qemu-5.2.0/meson/mesonbuild/scripts/ |
H A D | depfixer.py | 65 self.val = struct.unpack(self.XWord, ifile.read(self.XWordSize))[0] 68 self.val = struct.unpack(self.Word, ifile.read(self.WordSize))[0] 86 self.sh_name = struct.unpack(self.Word, ifile.read(self.WordSize))[0] 88 self.sh_type = struct.unpack(self.Word, ifile.read(self.WordSize))[0] 95 self.sh_addr = struct.unpack(self.Addr, ifile.read(self.AddrSize))[0] 97 self.sh_offset = struct.unpack(self.Off, ifile.read(self.OffSize))[0] 104 self.sh_link = struct.unpack(self.Word, ifile.read(self.WordSize))[0] 106 self.sh_info = struct.unpack(self.Word, ifile.read(self.WordSize))[0] 168 self.e_ident = struct.unpack('16s', self.bf.read(16))[0] 173 self.e_phoff = struct.unpack(self.Off, self.bf.read(self.OffSize))[0] [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/angle/scripts/ |
H A D | bmp_to_nv12.py | 12 import struct 25 file_size, = struct.unpack("I", bmp_file.read(4)) 28 bmp_file.read(4) 30 offset, = struct.unpack("I", bmp_file.read(4)) 32 headersize, = struct.unpack("I", bmp_file.read(4)) 33 width, = struct.unpack("i", bmp_file.read(4)) 34 height, = struct.unpack("i", bmp_file.read(4)) 35 planes, = struct.unpack("H", bmp_file.read(2)) 36 bpp, = struct.unpack("H", bmp_file.read(2)) 37 compression, = struct.unpack("i", bmp_file.read(4)) [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/angle/scripts/ |
H A D | bmp_to_nv12.py | 12 import struct 25 file_size, = struct.unpack("I", bmp_file.read(4)) 28 bmp_file.read(4) 30 offset, = struct.unpack("I", bmp_file.read(4)) 32 headersize, = struct.unpack("I", bmp_file.read(4)) 33 width, = struct.unpack("i", bmp_file.read(4)) 34 height, = struct.unpack("i", bmp_file.read(4)) 35 planes, = struct.unpack("H", bmp_file.read(2)) 36 bpp, = struct.unpack("H", bmp_file.read(2)) 37 compression, = struct.unpack("i", bmp_file.read(4)) [all …]
|
/dports/science/py-libpysal/libpysal-4.5.1/libpysal/io/util/ |
H A D | wkb.py | 60 npts = struct.unpack("<I", dat.read(4))[0] 61 xy = struct.unpack("<%dd" % (npts * 2), dat.read(npts * 2 * 8)) 66 npts = struct.unpack(">I", dat.read(4))[0] 103 typ = struct.unpack("I", dat.read(4))[0] 116 x, y = struct.unpack(endian + "dd", dat.read(16)) 128 n = struct.unpack(endian + "I", dat.read(4))[0] 144 nrings = struct.unpack(endian + "I", dat.read(4))[0] 157 npts = struct.unpack(endian + "I", dat.read(4))[0] 169 nparts = struct.unpack(endian + "I", dat.read(4))[0] 183 npolys = struct.unpack(endian + "I", dat.read(4))[0] [all …]
|
/dports/graphics/py-cogdumper/cogdumper-1.1.0/cogdumper/ |
H A D | cog_tiles.py | 5 import struct 16 def read(offset, len): member in AbstractReader 47 self.read = reader 72 bytes = self.read(self._offset, 8) 119 self.read(self._offset, 8) 122 bytes = self.read(self._offset, 2) 168 self.read(self._offset, 4) 180 bytes = self.read(0, 4) 190 self._offset = struct.unpack(f'{self._endian}L', self.read(4, 4))[0] 194 bytes = self.read(4, 12) [all …]
|
/dports/audio/picard-plugins/picard-plugins-d859757/plugins/videotools/enzyme/ |
H A D | mp4.py | 169 h = file.read(8) 180 if file.read(4) != 'qt ': 186 h = file.read(8) 192 h = file.read(8) 201 size = struct.unpack('>Q', file.read(8)) 214 s = file.read(8) 230 atomdata = file.read(atomsize - 8) 379 mvhd = struct.unpack('>6I2h', file.read(28)) 387 datasize, atomtype = struct.unpack('>I4s', file.read(8)) 391 method = struct.unpack('>4s', file.read(datasize - 8))[0] [all …]
|
/dports/emulators/dolphin-emu/dolphin-3152428/Tools/ |
H A D | print-fs-fst.py | 2 import struct 5 name = struct.unpack_from("12s", f.read(12))[0] 6 uid = struct.unpack_from(">I", f.read(4))[0] 7 gid = struct.unpack_from(">H", f.read(2))[0] 8 is_file = struct.unpack_from("?", f.read(1))[0] 9 modes = struct.unpack_from("BBB", f.read(3)) 10 attr = struct.unpack_from("B", f.read(2))[0] 11 x3 = struct.unpack_from(">I", f.read(4))[0] 12 num_children = struct.unpack_from(">I", f.read(4))[0]
|
/dports/science/sigrok-firmware-utils/firmware-20140418/ |
H A D | parsepe.py | 24 import struct 35 pe_ptr = struct.unpack("<L", f.read(4))[0] 42 num_sections = struct.unpack("<H", f.read(2))[0] 45 symboltable_address = struct.unpack("<L", f.read(4))[0] 46 num_symbols = struct.unpack("<L", f.read(4))[0] 47 optheader_size = struct.unpack("<H", f.read(2))[0] 56 size = struct.unpack("<L", f.read(4))[0] 58 ptr = struct.unpack("<L", f.read(4))[0] 68 tmp = f.read(8) 69 symaddr = struct.unpack("<L", f.read(4))[0] [all …]
|