[plum] Utility Reference: getbytes()

plum.getbytes(buffer, offset, nbytes=None, dump=None)

Get bytes from buffer.

  • buffer (bytes-like (e.g. bytes, bytearray, memoryview) or binary file) – bytes buffer
  • offset (int) – offset into bytes buffer
  • nbytes (int) – bytes to consume (None returns remainder)
  • dump (Dump) – bytes summary dump (None skips dump annotation)

tuple of (requested bytes, offset)

Return type:

bytes-like, int, int or None