[r6rs-discuss] [Formal] get-bytevector-some may be difficult to implement

From: Per Bothner <per>
Date: Thu Mar 15 14:33:19 2007

Ludovic Court?s wrote:
> The semantics of `get-bytevector-some', as I understand it, are similar
> to that of read(2) on a blocking file descriptor:

Not really: With read(2) the caller *supplies* a buffer, and the
requested size is also provided.

> it returns at least 1
> byte and up to the number of requested bytes; a return value of zero
> indicates end-of-file.

But for get-bytevector-some there is no "number of requested bytes".

My complaint is primarily editorial: "available data" could mean
"available without blocking" or it could mean "available in the
internal buffer".
-- 
	--Per Bothner
per_at_bothner.com   http://per.bothner.com/
Received on Thu Mar 15 2007 - 14:32:15 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:01 UTC