[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, 7 Oct 2003 05:58:00 -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 alexkucherenko@mail.ru.

http://bugzilla.ximian.com/show_bug.cgi?id=49403

--- shadow/49403	2003-10-07 05:58:00.000000000 -0400
+++ shadow/49403.tmp.6343	2003-10-07 05:58:00.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 49403
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 001 One hour
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: alexkucherenko@mail.ru               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+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 
+buffer\cache. 
+
+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: