class_docstr: Raw I/O implementation the input and output stream is resettable.
docstr: Write the given bytes or pyarrow.Buffer object *b* to the underlying
  output stream and return the number of bytes written.
docstr_tok: ["Write","the","given","bytes","or","pyarrow.Buffer","object","*","b","*","to","the","underlying","output","stream","and","return","the","number","of","bytes","written","."]
code: def write(self, b):
      """
      Write the given bytes or pyarrow.Buffer object *b* to the underlying
      output stream and return the number of bytes written.
      """
      if isinstance(b, bytes):
          self._output_stream.write(b)
      else:
          # pyarrow.Buffer
          self._output_stream.write(b.to_pybytes())
      return len(b)
  
file_path: flink/flink-python/pyflink/fn_execution/ResettableIO.py
imports: import io
label_desc: Use image node_id 4 for calling the ResettableIO obj's underlying member method code with example usage: obj.write(b) and returns: len