The name more or less speaks of everything. Calls are documented:
Here for TextReader.Read Method (Char[], Int32, Int32)
and
Here for TextReader.ReadBlock()with the same types of arguments.
I want to extract the part of a byte array for which I am creating MemoryStream, which I intend to read with StreamReader, for example:
StreamReader r = new StreamReader(new MemoryStream(rawData, 0, 184, false, false));
r.Read.....
What benefits should I use? Is one of them faster or better?
source
share