Package vstruct :: Module primitives
[hide private]
[frames] | no frames]

Module primitives

source code

Classes [hide private]
  v_enum
  v_base
  v_prim
  v_number
  v_uint8
  v_uint16
  v_uint24
  v_uint32
  v_uint64
  v_int8
  v_int16
  v_int24
  v_int32
  v_int64
  v_size_t
  v_ptr
  v_ptr32
  v_ptr64
  v_float
  v_double
  v_bytes
v_bytes is used for fixed width byte fields.
  v_str
A string placeholder class which will automagically return up to a null terminator (and will keep it's size by null padding when assigned to)
  v_zstr
A string placeholder class which will automagically return up to a null terminator dynamically.
  v_wstr
Unicode variant of the above string class
  GUID
Variables [hide private]
  num_fmts = {(True, 1): '>B', (True, 2): '>H', (True, 4): '>I',...
  pointersize = struct.calcsize("P")
  float_fmts = {(True, 4): '>f', (True, 8): '>d', (False, 4): '<...
Variables Details [hide private]

num_fmts

Value:
{(True, 1): '>B', (True, 2): '>H', (True, 4): '>I', (True, 8): '>Q', (\
False, 1): '<B', (False, 2): '<H', (False, 4): '<I', (False, 8): '<Q',\
}

float_fmts

Value:
{(True, 4): '>f', (True, 8): '>d', (False, 4): '<f', (False, 8): '<d',\
}