xdrlib.Packer

class xdrlib.Packer[source]

Pack various data representations into a buffer.

Methods

__init__()
get_buf()
get_buffer()
pack_array(list, pack_item)
pack_bool(x)
pack_bytes(s)
pack_double(value)
pack_enum(value)
pack_farray(n, list, pack_item)
pack_float(value)
pack_fopaque(n, s)
pack_fstring(n, s)
pack_hyper(x)
pack_int(value)
pack_list(list, pack_item)
pack_opaque(s)
pack_string(s)
pack_uhyper(x)
pack_uint(value)
reset()