A positive number indicates the number of bytes successfully written, including the headers, file contents, and trailers. A negative value indicates an error.