(self, size=-1)
return blob_bytes
Returns 'size' amount of bytes or less if there is no more data.
        If no size is given all data is returned. size can be >= 0.
Returns 'size' amount of bytes or less if there is no more data.
        If no size is given all data is returned. size can be >= 0.
Returns size amount of bytes or less if there is no more data . If no size is given all data is returned . size can be > = 0 .
def read(self, size=-1):
        """Returns 'size' amount of bytes or less if there is no more data.
        If no size is given all data is returned. size can be >= 0."""
        if self.closed:
            raise ValueError("I/O operation on closed file")
        max_size = max(0, self.size - self.pos)
        if size < 0 or size > max_size:
            size = max_size
        if size == 0:
            return b""
        blob_bytes = self.blob.download_as_bytes(
            start=self.pos, end=self.pos + size - 1
        )
        self.pos += len(blob_bytes)
        return blob_bytes
def read ( self , size = - 1 ) : if self . closed : raise ValueError ( "I/O operation on closed file" ) max_size = max ( 0 , self . size - self . pos ) if size < 0 or size > max_size : size = max_size if size == 0 : return b"" blob_bytes = self . blob . download_as_bytes ( start = self . pos , end = self . pos + size - 1 ) self . pos += len ( blob_bytes ) return blob_bytes