Write reads len(p) from p to the object data stream. It returns the number of bytes written from p (0 <= n <= len(p)) and any error encountered that caused the write to stop early. The slice data contained in p will not be modified.

If writing len(p) bytes would exceed the size provided in NewWriter, ErrOverflow is returned without writing any data.

Write is referenced in 1 repository