xdrlib.Unpacker.unpack_fopaque()

Unpacker.unpack_fopaque(n) Unpacks and returns a fixed length opaque data stream, similarly to unpack_fstring().

xdrlib.Unpacker.unpack_float()

Unpacker.unpack_float() Unpacks a single-precision floating point number.

xdrlib.Unpacker.unpack_farray()

Unpacker.unpack_farray(n, unpack_item) Unpacks and returns (as a list) a fixed length array of homogeneous items. n is number of list elements to expect in the buffer. As above, unpack_item is the function used to unpack each element.

xdrlib.Unpacker.unpack_double()

Unpacker.unpack_double() Unpacks a double-precision floating point number, similarly to unpack_float().

xdrlib.Unpacker.unpack_bytes()

Unpacker.unpack_bytes() Unpacks and returns a variable length byte stream, similarly to unpack_string().

xdrlib.Unpacker.unpack_array()

Unpacker.unpack_array(unpack_item) Unpacks and returns a variable length list of homogeneous items. First, the length of the list is unpacked as an unsigned integer, then each element is unpacked as in unpack_farray() above.

xdrlib.Unpacker.set_position()

Unpacker.set_position(position) Sets the data buffer unpack position to position. You should be careful about using get_position() and set_position().

xdrlib.Unpacker.reset()

Unpacker.reset(data) Resets the string buffer with the given data.

xdrlib.Unpacker.get_position()

Unpacker.get_position() Returns the current unpack position in the data buffer.

xdrlib.Unpacker.get_buffer()

Unpacker.get_buffer() Returns the current unpack data buffer as a string.