Required Instance Methodswift-png 4.4.5PNG
write(_:)
Attempts to write the given bytes to this stream.
PNG.BytestreamDestination.swift:30mutating func write(_ buffer: [UInt8]) -> Void?
Parameters
- bytes
The bytes to write.
Returns
A Void
tuple, or nil
if the write attempt failed. This method should return nil
even if any number of bytes less than bytes.count
were successfully written.
A successful call to this function should affect the bytestream state such that subsequent calls should pick up where the last call left off.
The rest of the library interprets a nil
return value from this function as indicating a write failure.