read


Description:


public ssize_t read (int fd, string buf, size_t n, Cancellable? cancellable = null) throws Error

Cancellable libc read replacement.

Code that intends to be portable to Win32 should call this function only on file descriptors returned from open, not on sockets.

Parameters:

fd

file descriptor

buf

buffer to fill

n

number of bytes to read into buf

cancellable

optional Cancellable object, or null

Returns:

number of bytes read or -1 on fail. On failure, errno will be set appropriately.


Namespace: Camel
Package: camel-1.2