shadow:io

Interface CanRead

interface CanRead

Interface CanRead specifies that a class can read data into 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) read(ubyte[] buffer)

Method called to read data.

Method Detail

read

public read(ubyte[] buffer) => (long)

Method called to read data.

Parameters

buffer - array of ubyte values to read data into

Returns

number of ubyte values successfully read