What is the meaning of "search" flow?
I know there are searchable streams (such as MemoryStream and FileStream) and non-searchable streams (such as Network Stream).
MSDN talks about the search method
Search for any location outside the stream length is supported.
But I didn't get it! I tried looking for an answer on the internet, but I failed.
+3
source to share
1 answer
Seekable
means that you can manually set the cursor position in the stream, i.e. you can read / write a byte anywhere. You don't have to read a byte for the cursor position to increment.
Searching after the current stream length will basically expand the stream length (e.g. your file will grow for a FileStream).
+5
source to share