|
|
|
|
|
|
|
|
|
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 = PN_NULL
A null value.
|
|
BOOL = PN_BOOL
A boolean value.
|
|
UBYTE = PN_UBYTE
An unsigned byte value.
|
|
BYTE = PN_BYTE
A signed byte value.
|
|
USHORT = PN_USHORT
An unsigned short value.
|
|
SHORT = PN_SHORT
A short value.
|
|
UINT = PN_UINT
An unsigned int value.
|
|
INT = PN_INT
A signed int value.
|
|
CHAR = PN_CHAR
A character value.
|
|
ULONG = PN_ULONG
An unsigned long value.
|
|
LONG = PN_LONG
A signed long value.
|
|
TIMESTAMP = PN_TIMESTAMP
A timestamp value.
|
|
FLOAT = PN_FLOAT
A float value.
|
|
DOUBLE = PN_DOUBLE
A double value.
|
|
DECIMAL32 = PN_DECIMAL32
A DECIMAL32 value.
|
|
DECIMAL64 = PN_DECIMAL64
A DECIMAL64 value.
|
|
DECIMAL128 = PN_DECIMAL128
A DECIMAL128 value.
|
|
UUID = PN_UUID
A UUID value.
|
|
BINARY = PN_BINARY
A binary string.
|
|
STRING = PN_STRING
A unicode string.
|
|
SYMBOL = PN_SYMBOL
A symbolic string.
|
|
DESCRIBED = PN_DESCRIBED
A described value.
|
|
ARRAY = PN_ARRAY
An array value.
|
|
LIST = PN_LIST
A list value.
|
|
MAP = PN_MAP
A map value.
|
|
type_names = {NULL: "null", BOOL: "bool", BYTE: "byte", UBYTE:...
|
|
put_mappings = {None.__class__: lambda s, _: s.put_null(), boo...
|
|
get_mappings = {NULL: lambda s: None, BOOL: get_bool, BYTE: ge...
|