docs: def read(self, n):
          """Read `n` chars from buffer"""
          r = self.buf[self.offset:self.offset + n]
          if isinstance(r, array):
              r = r.tostring()
          self.offset += n
          return r