Re: [Vala] patch to add read/write to FileStream
- From: Jürg Billeter <j bitron ch>
- To: Cliff Brake <cliff brake gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] patch to add read/write to FileStream
- Date: Wed, 10 Sep 2008 18:31:11 +0200
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.
] [Thread Prev