X Tutup
Skip to content

Commit 51eb6fa

Browse files
author
Johan Brichau
authored
Merge pull request SeasideSt#144 from marschall/GRPharoZnCodecStream-nextPutAll
Avoid copies in GRPharoZnCodecStream
2 parents a6140fe + c75b7d4 commit 51eb6fa

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
accessing
22
greaseNext: anInteger putAll: aCollection startingAt: startIndex
3-
self nextPutAll: (aCollection copyFrom: startIndex to: startIndex + anInteger - 1)
3+
encoder next: anInteger putAll: aCollection startingAt: startIndex toStream: stream
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
streaming
22
nextPutAll: aString
3-
aString asString do:[ :each | self nextPut: each ]
3+
| string |
4+
string := aString asString.
5+
encoder next: string size putAll: string startingAt: 1 toStream: stream
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
accessing
22
greaseNext: anInteger putAll: aCollection startingAt: startIndex
3-
self nextPutAll: (aCollection copyFrom: startIndex to: startIndex + anInteger - 1)
3+
encoder next: anInteger putAll: aCollection startingAt: startIndex toStream: stream
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
streaming
22
nextPutAll: aString
3-
aString asString do:[ :each | self nextPut: each ]
3+
| string |
4+
string := aString asString.
5+
encoder next: string size putAll: string startingAt: 1 toStream: stream

0 commit comments

Comments
 (0)
X Tutup