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



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]