Streaming transport interfaces: input
Michel Fortin
michel.fortin at michelf.com
Thu Oct 14 16:30:21 PDT 2010
On 2010-10-14 16:47:13 -0400, "Steven Schveighoffer"
<schveiguy at yahoo.com> said:
>> stream.position = StreamBase.atEnd;
>
> OK, that is acceptable. What about seeking to N bytes before the end?
>
> What about seeking N bytes ahead of the current position (as previously
> stated)?
Would be nice if we could do all this:
stream.position = $;
stream.position = $-10;
stream.position += 10;
The last one (+=) should be only one function call to avoid two system
calls. All that's a little hard to implement though.
--
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/
More information about the Digitalmars-d
mailing list