Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Skipping data with a Reader

Moderators: larsivi kris

Posted: 05/27/07 20:22:04

I'm reading from a data conduit via a Reader. The protocol I implement, requires skipping of some bytes for padding.

How do I do this if I have my reader instance?

reader.buffer.skip();

Or is there another / better way? I think, manipulating the internal buffer of a Reader is not the ultimative way :)

Author Message

Posted: 05/28/07 20:43:32

what do you suggest?

Posted: 05/28/07 21:15:53

Thought of

Reader.skip;

This is especially important, as one does not know if it's safe to change the buffer without knowing Reader internals. In my case, I just simply guessed that I could do this, but was really unsure.