Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Classes | Functions | Variables
pip._vendor.msgpack.fallback Namespace Reference

Classes

class  Packer
 
class  StringIO
 
class  Unpacker
 

Functions

 dict_iteritems (d)
 
 _is_recursionerror (e)
 
 _check_type_strict (obj, t, type=type, tuple=tuple)
 
 _get_data_from_buffer (obj)
 
 unpackb (packed, **kwargs)
 
 _unpack_from (f, b, o=0)
 

Variables

int PY2 = 2
 
tuple int_types = (int, long)
 
 unicode = str
 
 xrange = range
 
 RecursionError = RuntimeError
 
bool USING_STRINGBUILDER = True
 
 newlist_hint = lambda size: []
 
int EX_SKIP = 0
 
int EX_CONSTRUCT = 1
 
int EX_READ_ARRAY_HEADER = 2
 
int EX_READ_MAP_HEADER = 3
 
int TYPE_IMMEDIATE = 0
 
int TYPE_ARRAY = 1
 
int TYPE_MAP = 2
 
int TYPE_RAW = 3
 
int TYPE_BIN = 4
 
int TYPE_EXT = 5
 
int DEFAULT_RECURSE_LIMIT = 511
 
 _unpack_from = struct.unpack_from
 
str _NO_FORMAT_USED = ""
 
dict _MSGPACK_HEADERS
 

Detailed Description

Fallback pure Python implementation of msgpack

Function Documentation

◆ _unpack_from()

pip._vendor.msgpack.fallback._unpack_from (   f,
  b,
  o = 0 
)
protected
Explicit type cast for legacy struct.unpack_from

◆ unpackb()

pip._vendor.msgpack.fallback.unpackb (   packed,
**  kwargs 
)
Unpack an object from `packed`.

Raises ``ExtraData`` when *packed* contains extra bytes.
Raises ``ValueError`` when *packed* is incomplete.
Raises ``FormatError`` when *packed* is not valid msgpack.
Raises ``StackError`` when *packed* contains too nested.
Other exceptions can be raised during unpacking.

See :class:`Unpacker` for options.

Variable Documentation

◆ _MSGPACK_HEADERS

dict pip._vendor.msgpack.fallback._MSGPACK_HEADERS
protected
Initial value:
1= {
2 0xC4: (1, _NO_FORMAT_USED, TYPE_BIN),
3 0xC5: (2, ">H", TYPE_BIN),
4 0xC6: (4, ">I", TYPE_BIN),
5 0xC7: (2, "Bb", TYPE_EXT),
6 0xC8: (3, ">Hb", TYPE_EXT),
7 0xC9: (5, ">Ib", TYPE_EXT),
8 0xCA: (4, ">f"),
9 0xCB: (8, ">d"),
10 0xCC: (1, _NO_FORMAT_USED),
11 0xCD: (2, ">H"),
12 0xCE: (4, ">I"),
13 0xCF: (8, ">Q"),
14 0xD0: (1, "b"),
15 0xD1: (2, ">h"),
16 0xD2: (4, ">i"),
17 0xD3: (8, ">q"),
18 0xD4: (1, "b1s", TYPE_EXT),
19 0xD5: (2, "b2s", TYPE_EXT),
20 0xD6: (4, "b4s", TYPE_EXT),
21 0xD7: (8, "b8s", TYPE_EXT),
22 0xD8: (16, "b16s", TYPE_EXT),
23 0xD9: (1, _NO_FORMAT_USED, TYPE_RAW),
24 0xDA: (2, ">H", TYPE_RAW),
25 0xDB: (4, ">I", TYPE_RAW),
26 0xDC: (2, ">H", TYPE_ARRAY),
27 0xDD: (4, ">I", TYPE_ARRAY),
28 0xDE: (2, ">H", TYPE_MAP),
29 0xDF: (4, ">I", TYPE_MAP),
30}