GLib.IOChannel.prototype.read_chars
function read_chars(): [return_value: GLib.IOStatus, buf: ByteArray, bytes_read: Number(gsize)] {
// Gjs wrapper for g_io_channel_read_chars()
}
Replacement for GLib.IOChannel.prototype.read with the new API.
- return_value
the status of the operation.
- buf
a buffer to read data into
- bytes_read
The number of bytes read. This may be zero even on success if count < 6 and the channel's encoding is non-null. This indicates that the next UTF-8 character is too wide for the buffer.