diff --git a/Doc/library/xdrlib.rst b/Doc/library/xdrlib.rst index 5c7dfa4..944e668 100644 --- a/Doc/library/xdrlib.rst +++ b/Doc/library/xdrlib.rst @@ -81,32 +81,21 @@ The following methods support packing strings, bytes, and opaque data: .. method:: Packer.pack_fstring(n, s) + Packer.pack_fopaque(n, s) - Packs a fixed length string, *s*. *n* is the length of the string but it is - *not* packed into the data buffer. The string is padded with null bytes if - necessary to guaranteed 4 byte alignment. - - -.. method:: Packer.pack_fopaque(n, data) - - Packs a fixed length opaque data stream, similarly to :meth:`pack_fstring`. + Packs a fixed length bytestring, *s*. *n* is the length of the + bytestring but it is *not* packed into the data buffer. The data is + padded with null bytes if necessary to guaranteed 4 byte alignment. .. method:: Packer.pack_string(s) + Packer.pack_opaque(s) + Packer.pack_bytes(s) - Packs a variable length string, *s*. The length of the string is first packed - as an unsigned integer, then the string data is packed with - :meth:`pack_fstring`. - - -.. method:: Packer.pack_opaque(data) - - Packs a variable length opaque data string, similarly to :meth:`pack_string`. - - -.. method:: Packer.pack_bytes(bytes) + Packs a variable length bytestring, *s*. The length of the + bytestring is first packed as an unsigned integer, then the data is + packed with :meth:`pack_fstring`. - Packs a variable length byte stream, similarly to :meth:`pack_string`. The following methods support packing arrays and lists: