|
|
|
|
|
|
|
|
|
next(self)
Advances the current node to its next sibling and returns its type. |
source code
|
|
|
prev(self)
Advances the current node to its previous sibling and returns its
type. |
source code
|
|
|
enter(self)
Sets the parent node to the current node and clears the current node. |
source code
|
|
|
exit(self)
Sets the current node to the parent node and the parent node to its
own parent. |
source code
|
|
|
|
|
|
|
|
|
type(self)
Returns the type of the current node. |
source code
|
|
|
encoded_size(self)
Returns the size in bytes needed to encode the data in AMQP format. |
source code
|
|
|
encode(self)
Returns a representation of the data encoded in AMQP format. |
source code
|
|
|
decode(self,
encoded)
Decodes the first value from supplied AMQP data and returns the
number of bytes consumed. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
put_memoryview(self,
mv)
Put a python memoryview object as an AMQP binary value |
source code
|
|
|
put_buffer(self,
buff)
Put a python buffer object as an AMQP binary value |
source code
|
|
|
|
|
|
|
get_list(self)
If the current node is a list, return the number of elements,
otherwise return zero. |
source code
|
|
|
get_map(self)
If the current node is a map, return the number of child elements,
otherwise return zero. |
source code
|
|
|
get_array(self)
If the current node is an array, return a tuple of the element count,
a boolean indicating whether the array is described, and the type of
each element, otherwise return (0, False, None). |
source code
|
|
|
|
|
is_null(self)
Checks if the current node is a null. |
source code
|
|
|
get_bool(self)
If the current node is a boolean, returns its value, returns False
otherwise. |
source code
|
|
|
get_ubyte(self)
If the current node is an unsigned byte, returns its value, returns 0
otherwise. |
source code
|
|
|
get_byte(self)
If the current node is a signed byte, returns its value, returns 0
otherwise. |
source code
|
|
|
get_ushort(self)
If the current node is an unsigned short, returns its value, returns
0 otherwise. |
source code
|
|
|
get_short(self)
If the current node is a signed short, returns its value, returns 0
otherwise. |
source code
|
|
|
get_uint(self)
If the current node is an unsigned int, returns its value, returns 0
otherwise. |
source code
|
|
|
get_int(self)
If the current node is a signed int, returns its value, returns 0
otherwise. |
source code
|
|
|
get_char(self)
If the current node is a char, returns its value, returns 0
otherwise. |
source code
|
|
|
get_ulong(self)
If the current node is an unsigned long, returns its value, returns 0
otherwise. |
source code
|
|
|
get_long(self)
If the current node is an signed long, returns its value, returns 0
otherwise. |
source code
|
|
|
get_timestamp(self)
If the current node is a timestamp, returns its value, returns 0
otherwise. |
source code
|
|
|
get_float(self)
If the current node is a float, returns its value, raises 0
otherwise. |
source code
|
|
|
get_double(self)
If the current node is a double, returns its value, returns 0
otherwise. |
source code
|
|
|
get_decimal32(self)
If the current node is a decimal32, returns its value, returns 0
otherwise. |
source code
|
|
|
get_decimal64(self)
If the current node is a decimal64, returns its value, returns 0
otherwise. |
source code
|
|
|
get_decimal128(self)
If the current node is a decimal128, returns its value, returns 0
otherwise. |
source code
|
|
|
get_uuid(self)
If the current node is a UUID, returns its value, returns None
otherwise. |
source code
|
|
|
get_binary(self)
If the current node is binary, returns its value, returns
"" otherwise. |
source code
|
|
|
get_string(self)
If the current node is a string, returns its value, returns
"" otherwise. |
source code
|
|
|
get_symbol(self)
If the current node is a symbol, returns its value, returns
"" otherwise. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
get_py_array(self)
If the current node is an array, return an Array object representing
the array and its contents. |
source code
|
|
|
|
|
|
|
|
|
NULL = 1
A null value.
|
|
BOOL = 2
A boolean value.
|
|
UBYTE = 3
An unsigned byte value.
|
|
BYTE = 4
A signed byte value.
|
|
USHORT = 5
An unsigned short value.
|
|
SHORT = 6
A short value.
|
|
UINT = 7
An unsigned int value.
|
|
INT = 8
A signed int value.
|
|
CHAR = 9
A character value.
|
|
ULONG = 10
An unsigned long value.
|
|
LONG = 11
A signed long value.
|
|
TIMESTAMP = 12
A timestamp value.
|
|
FLOAT = 13
A float value.
|
|
DOUBLE = 14
A double value.
|
|
DECIMAL32 = 15
A DECIMAL32 value.
|
|
DECIMAL64 = 16
A DECIMAL64 value.
|
|
DECIMAL128 = 17
A DECIMAL128 value.
|
|
UUID = 18
A UUID value.
|
|
BINARY = 19
A binary string.
|
|
STRING = 20
A unicode string.
|
|
SYMBOL = 21
A symbolic string.
|
|
DESCRIBED = 22
A described value.
|
|
ARRAY = 23
An array value.
|
|
LIST = 24
A list value.
|
|
MAP = 25
A map value.
|
|
type_names = { 1: ' null ' , 2: ' bool ' , 3: ' ubyte ' , 4: ' byte ' , 5: ...
|
|
put_mappings = {None.__class__: lambda s, _: s.put_null(), boo...
|
|
get_mappings = {NULL: lambda s: None, BOOL: get_bool, BYTE: ge...
|