java.io.ByteArrayOutputStream.reset could not be convertedĀ
In the Java language, this method resets the count field of a byte array output stream to zero. All accumulated output in the output stream is discarded. The output stream can be used again, reusing the already allocated buffer space.
In the .NET Framework, there is no direct equivalent.
To correct this error
- Use the System.IO.Stream.Flush method to clear all buffers for a stream.
Example
public void sample(MemoryStream myMemBuff)
{
myMemBuff.SetLength(0);
myMemBuff.Flush();
}