Skip to content

Commit adda118

Browse files
committed
Fix: upToEnd only worked with memory filesystems
1 parent 262604e commit adda118

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
ansi gettable
22
upToEnd
33
| start data |
4-
start := position + 1.
5-
position := handle size.
6-
data := handle copyFrom: start to: position.
4+
start := position.
5+
data := self basicNext: handle size - start.
76
^ isBinary ifTrue: [data] ifFalse: [self converter decodeString: data asString]

src/FS-AnsiStreams.package/FSReadStream.class/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
"peekFor:" : "jr 2/21/2017 14:18",
2121
"size" : "CamilloBruni 8/12/2011 20:49",
2222
"skip:" : "jr 1/1/2019 18:42",
23-
"upToEnd" : "jr 4/13/2017 16:30",
23+
"upToEnd" : "jr 11/19/2021 22:01",
2424
"upToPosition:" : "tobe 10/7/2020 10:21" } }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
stream-protocol
22
copyFrom: from to: position
3+
self deprecated: 'Use at: from read: aCollection startingAt: 1 count: position - from + 1 instead'.
34
^ bytes copyFrom: from to: position

src/FS-Memory.package/FSMemoryHandle.class/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"at:read:startingAt:count:" : "lr 2/15/2010 20:54",
88
"at:write:startingAt:count:" : "cwp 1/31/2010 22:39",
99
"close" : "jr 1/20/2017 15:57",
10-
"copyFrom:to:" : "jr 10/12/2016 18:08",
10+
"copyFrom:to:" : "jr 11/19/2021 21:55",
1111
"fileSize" : "jr 10/18/2016 22:09",
1212
"flush" : "cwp 7/29/2009 22:23",
1313
"grow" : "cwp 1/31/2010 22:45",

0 commit comments

Comments
 (0)