This is a stream with a lookback buffer. It allows you to read bytes from it and sometime go back and fetch previous bytes.
It also supports searching for a specific sequence of bytes.
Create an instance of SimpleMemoryStream and pass the lookback buffer size and
the object created at the first step.
Search a sequence of bytes in the stream.
Once the sequence of bytes is found you can fetch bytes before the sequence and after it by providing the specific indexes.
This memory stream provides getBytes interface which accepts indexes. The stream will be read sequentially and once values from bigger
indexes are read you can look back only limited number of bytes.
This is a stream with a lookback buffer. It allows you to read bytes from it and sometime go back and fetch previous bytes. It also supports searching for a specific sequence of bytes.
The pattern of usage for this stream is this.