The title more or less says it all. The calls are documented:
Here for TextReader.Read Method (Char[], Int32, Int32)
and
Here for TextReader.ReadBlock()
with the same argument types.
I want to extract a portion of a byte array, for which I make up a MemoryStream
that I intent to read with a StreamReader
like so:
StreamReader r = new StreamReader(new MemoryStream(rawData, 0, 184, false, false));
r.Read.....
Which one should I use? Is one of them faster or otherwise better?