write(_:maxLength:)
Writes the contents of a provided data buffer to the receiver.
Declaration
func write(_ buffer: UnsafePointer<UInt8>, maxLength len: Int) -> IntParameters
- buffer:
The data to write.
- len:
The length of the data buffer, in bytes.
Mentioned in
Return Value
A number indicating the outcome of the operation:
A positive number indicates the number of bytes written.
0indicates that a fixed-length stream and has reached its capacity.-1means that the operation failed; more information about the error can be obtained with streamError.