#DOCUMENTATION by stefan
class: ReadWriteStream
comment/format in:
#contents
--- a/ReadWriteStream.st Wed Jul 06 20:23:59 2016 +0200
+++ b/ReadWriteStream.st Wed Jul 06 20:26:03 2016 +0200
@@ -102,13 +102,6 @@
^ super next:count
!
-nextByte
- "return the next element; advance read pointer.
- return nil, if there is no next element"
-
- ^ self next asInteger
-!
-
peek
"return the element to be read next without advancing read position.
If there are no more elements, nil is returned."
@@ -132,8 +125,8 @@
"return the contents as written so far;
redefined to prevent confusion resulting due to
my superclasses optimization. (see WriteStream contents).
- ST80 users if RWStream expect the contents array to remain
- unchanged."
+ ST80 users of ReadWriteStream may expect the contents array to remain
+ unchanged, which we do not guarantee."
readLimit := (readLimit ? 0) max:position.
^ collection copyFrom:1 to:readLimit