Re: [Vala] patch to add read/write to FileStream
- From: "Levi Bard" <taktaktaktaktaktaktaktaktaktak gmail com>
- To: "Cliff Brake" <cliff brake gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] patch to add read/write to FileStream
- Date: Thu, 11 Sep 2008 08:55:13 -0400
fread(void *ptr, size_t size, size_t nmemb, FILE *stream)
from what I can tell, Vala automatically fills in the size parameter
with the length of buf, so it will always try to read up to the length
of the buffer elements. nmemb should always be one in this case
because we do not have control of the size argument.
Wouldn't it be better to use [NoArrayLength] in the vapi and give the
user control of both size and nmemb?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]