[Mono-bugs] [Bug 49403][Wis] New - BufferedStream does not use internal buffer\cache in some conditions...

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 6 Apr 2004 12:58:11 -0400 (EDT)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by lluis@ximian.com.


--- shadow/49403	2004-04-06 12:58:11.000000000 -0400
+++ shadow/49403.tmp.15169	2004-04-06 12:58:11.000000000 -0400
@@ -0,0 +1,45 @@
+Bug#: 49403
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: RESOLVED   
+Resolution: FIXED
+Severity: 001 One hour
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: alexkucherenko@mail.ru               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: BufferedStream does not use internal buffer\cache in some conditions...
+Description of Problem:
+In BufferedStream on Position property set internal buffer will reset in 
+any case, even when new position of stream still in limits of our internal 
+Steps to reproduce the problem:
+1. Open stream|data throw BufferedStream class
+2. store stream position
+3. read 20 bytes
+4. restore position of stream
+5. try again to read 20 bytes
+Actual Results:
+on next (5) read operation bufferedStream will call wrapped stream, but it 
+still has needed data in internal buffer/cache
+Expected Results:
+simply update internal variables which indicate stream position, without 
+re-read and additional calls to wrapped stream.
+How often does this happen? 
+on Position property set method call.
+Additional Information:
+------- Additional Comments From lluis@ximian.com  2004-04-06 12:58 -------
+Fixed in CVS.