Skip to content

Commit 03a50c4

Browse files
committed
Avoid going twice through the binary-vs-ascii distinction in basicNext:
In other words, stay within the layer of "basic" functions that do not do the character conversion.
1 parent adda118 commit 03a50c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
accessing - multibyte support
22
basicNext: count
3-
^ self nextInto: ((isBinary ifTrue: ByteArray ifFalse: ByteString) new: count)
3+
^ self basicNextInto: (self collectionSpecies new: count)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"instance" : {
55
"atEnd" : "jr 4/13/2017 15:46",
66
"basicNext" : "jr 4/13/2017 15:39",
7-
"basicNext:" : "jr 12/13/2016 19:44",
7+
"basicNext:" : "jr 11/19/2021 22:09",
88
"basicNext:into:" : "jr 4/13/2017 15:39",
99
"basicNextInto:" : "jr 4/13/2017 15:39",
1010
"isRead" : "CamilloBruni 8/14/2011 15:28",

0 commit comments

Comments
 (0)