shadow:io

Interface CanWrite

interface CanWrite

Interface CanWrite specifies that a class can write data from an array of ubyte values. This operation is usually applied to files, streams, network connections, and similar I/O abstractions.

Method Summary

Modifiers Return Types Method and Description
public (long) write(ubyte[] buffer, long bytes)

Method called to write data.

Method Detail

write

public write(ubyte[] buffer, long bytes) => (long)

Method called to write data.

Parameters

buffer - array of ubyte values to write data from

bytes - total number of bytes to write

Returns

number of ubyte values successfully written