obspy.core.util.base.NamedTemporaryFile.write

NamedTemporaryFile.write(*args, **kwargs)[source]

Write the given buffer to the IO stream.

Returns the number of bytes written, which is always the length of b in bytes.

Raises BlockingIOError if the buffer is full and the underlying raw stream cannot accept more data at the moment.