docs: def _findbytes(self, bytes_, start, end, bytealigned):
          """Quicker version of find when everything's whole byte
          and byte aligned.
  
          """
          assert self._datastore.offset == 0
          assert bytealigned is True
          # Extract data bytes from bitstring to be found.
          bytepos = (start + 7) // 8
          found = False
          p = bytepos
          finalpos = end // 8
          increment = max(1024, len(bytes_) * 10)
          buffersize = increment + len(bytes_)
          while p < finalpos:
              # Read in file or from memory in overlapping chunks and search the chunks.
              buf = bytearray(self._datastore.getbyteslice(p, min(p + buffersize, finalpos)))
              pos = buf.find(bytes_)
              if pos != -1:
                  found = True
                  p += pos
                  break
              p += increment
          if not found:
              return ()
          return (p * 8,)