Re: I/O streaming with custom data transport
- From: Maciej Sobczak <no.spam@xxxxxxxxxxx>
- Date: Wed, 22 Nov 2006 11:39:48 +0100
Alex R. Mosteo wrote:
About traps, more complex streams may require special care: for example,
imagine your characters are multi-byte and you receive an incomplete
character code in the write function.
Sure.
But what about buffering the input/output. Is this already done (where?) or is this something I have to take care of?
Another issue - what about the text formatting? The standard Put(...) procedures are quite powerful, is there any way to reuse them (or at least their logic) with custom streams?
Just a nitpick: in your example, instead of allocating a new stream I would
simply get an access to a stack-allocated one:
declare
S2 : aliased My_Stream;
begin
Write_Hello (S2'Access);
end;
Yes, thanks.
--
Maciej Sobczak : http://www.msobczak.com/
Programming : http://www.msobczak.com/prog/
.
- Follow-Ups:
- Re: I/O streaming with custom data transport
- From: Simon Wright
- Re: I/O streaming with custom data transport
- From: Alex R. Mosteo
- Re: I/O streaming with custom data transport
- From: Dmitry A. Kazakov
- Re: I/O streaming with custom data transport
- References:
- I/O streaming with custom data transport
- From: Maciej Sobczak
- Re: I/O streaming with custom data transport
- From: Alex R. Mosteo
- Re: I/O streaming with custom data transport
- From: Maciej Sobczak
- Re: I/O streaming with custom data transport
- From: Alex R. Mosteo
- I/O streaming with custom data transport
- Prev by Date: Re: I/O streaming with custom data transport
- Next by Date: Re: I/O streaming with custom data transport
- Previous by thread: Re: I/O streaming with custom data transport
- Next by thread: Re: I/O streaming with custom data transport
- Index(es):