codecs.register(search_function) Register a codec search function. Search functions are expected to take one argument, being
struct.pack(fmt, v1, v2, ...) Return a bytes object containing the values v1, v2, ... packed according to
codecs.backslashreplace_errors(exception) Implements the 'backslashreplace' error handling (for
reset() Resets the codec buffers used for keeping state. Note that no stream repositioning should
streamwriter streamreader Stream writer and reader classes or factory functions. These have to provide the interface
write(object) Writes the object’s contents encoded to the stream.
decode The stateless encoding and decoding functions. These must be functions or methods which have the same interface as the
codecs.xmlcharrefreplace_errors(exception) Implements the 'xmlcharrefreplace' error handling (for encoding with
codecs.decode(obj, encoding='utf-8', errors='strict') Decodes obj using the codec registered for encoding
size The calculated size of the struct (and hence of the bytes object produced by the pack() method) corresponding
Page 4 of 8