ql.pack()

ql.pack()
  • If ql.archbit == 64 then ql.pack64 else ql.pack32
ql.pack64()
  • pack for 64bit data
    • Pack with option "Q":
    • C Type: unsigned long long
    • Size: 8 bytes
ql.pack32()
  • pack for 32bit data
    • Pack with option "I", with endian check:
    • C Type: unsigned int
    • Size: 4 bytes

ql.unpack()

ql.unpack()
  • If ql.archbit == 64 then ql.unpack64 else ql.unpack32
ql.upack64()
  • unpack for 64bit data
    • Unpack with option "Q":
    • C Type: unsigned long long
    • Size: 8 bytes
ql.unpack32()
  • unpack for 32bit data
    • Unpack with option "I", with endian check:
    • C Type: unsigned int
    • Size: 4 bytes
ql.pack16()
  • pack for 16bit data
    • Pack with option "H", with endian check:
    • C Type: unsigned short
    • Size: 2 bytes
ql.unpack16()
  • unpack for 16bit data
    • Unpack with option "H", with endian check:
    • C Type: unsigned short
    • Size: 2 bytes

ql.packs()

ql.packs()
  • If ql.archbit == 64 then ql.pack64s else ql.pack32s
ql.pack64s()
  • packs for 64bit data
    • Pack with option "q":
    • C Type: long
    • Size: 8 bytes
ql.pack32s
  • packs for 32bit data
    • Pack with option "i", with endian check:
    • C Type: int
    • Size: 4 bytes

ql.unpacks()

ql.unpacks()
  • If archbit == 64 then ql.unpack64s else ql.unpack32s
ql.unpack64s()
  • unpacks for 64bit data
    • Unpack with option "q":
    • C Type: long
    • Size: 8 bytes
ql.unpack32s()
  • unpacks for 32bit data
    • Unpack with option "i", with endian check:
    • C Type: int
    • Size: 4 bytes

ql.unpack32_ne()

ql.unpack32_ne()
  • Unpack with option "i":
  • C Type: int
  • Size: 4 bytes