codecs.register()
  • References/Python/Python/Binary Data

codecs.register(search_function) Register a codec search function. Search functions are expected to take one argument, being

2025-01-10 15:47:30
struct.pack()
  • References/Python/Python/Binary Data

struct.pack(fmt, v1, v2, ...) Return a bytes object containing the values v1, v2, ... packed according to

2025-01-10 15:47:30
codecs.backslashreplace_errors()
  • References/Python/Python/Binary Data

codecs.backslashreplace_errors(exception) Implements the 'backslashreplace' error handling (for

2025-01-10 15:47:30
codecs.StreamReader.reset()
  • References/Python/Python/Binary Data

reset() Resets the codec buffers used for keeping state. Note that no stream repositioning should

2025-01-10 15:47:30
codecs.CodecInfo.streamwriter
  • References/Python/Python/Binary Data

streamwriter streamreader Stream writer and reader classes or factory functions. These have to provide the interface

2025-01-10 15:47:30
codecs.StreamWriter.write()
  • References/Python/Python/Binary Data

write(object) Writes the object’s contents encoded to the stream.

2025-01-10 15:47:30
codecs.CodecInfo.decode
  • References/Python/Python/Binary Data

decode The stateless encoding and decoding functions. These must be functions or methods which have the same interface as the

2025-01-10 15:47:30
codecs.xmlcharrefreplace_errors()
  • References/Python/Python/Binary Data

codecs.xmlcharrefreplace_errors(exception) Implements the 'xmlcharrefreplace' error handling (for encoding with

2025-01-10 15:47:30
codecs.decode()
  • References/Python/Python/Binary Data

codecs.decode(obj, encoding='utf-8', errors='strict') Decodes obj using the codec registered for encoding

2025-01-10 15:47:30
struct.Struct.size
  • References/Python/Python/Binary Data

size The calculated size of the struct (and hence of the bytes object produced by the pack() method) corresponding

2025-01-10 15:47:30