Re: [Vala] patch to add read/write to FileStream

On Thu, 2008-09-04 at 18:14 -0400, Cliff Brake wrote:
The below patch adds read/write to FileStream:

Thanks for the patch.

Question:  is there any way I can always set nmemb=1 so the caller
does not have to set that variable?  In vala, I would just do:

read(buf), instead of read(buf, 1)

We can support this using default arguments as Sam already responded,
however, why should we do this? If you only want to read or write one
byte, you can use the getc or putc methods.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]