(self, gen: ty.Iterable[bytes])
Generates byte chunks of a given size.
		
		Takes a bytes generator and yields chunks of a maximum of
		``chunk_size`` bytes.
		
		Parameters
		----------
		gen
			The bytes generator that produces the bytes
Generates byte chunks of a given size.
		
		Takes a bytes generator and yields chunks of a maximum of
		``chunk_size`` bytes.
		
		Parameters
		----------
		gen
			The bytes generator that produces the bytes
Generates byte chunks of a given size . Takes a bytes generator and yields chunks of a maximum of chunk_size bytes . Parameters ---------- gen The bytes generator that produces the bytes
def _gen_chunks(self, gen: ty.Iterable[bytes]) -> gen_bytes_t:
		"""Generates byte chunks of a given size.
		
		Takes a bytes generator and yields chunks of a maximum of
		``chunk_size`` bytes.
		
		Parameters
		----------
		gen
			The bytes generator that produces the bytes
		"""
		for data in gen:
			#PERF: This is zero-copy if `len(data) <= self.chunk_size`
			for offset in range(0, len(data), self.chunk_size):
				yield data[offset:(self.chunk_size + offset)]
def _gen_chunks ( self , gen : ty . Iterable [ bytes ] ) -> gen_bytes_t : for data in gen : #PERF: This is zero-copy if `len(data) <= self.chunk_size` for offset in range ( 0 , len ( data ) , self . chunk_size ) : yield data [ offset : ( self . chunk_size + offset ) ]