Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
*grease-gemstone-core
greaseNext: anInteger putAll: aCollection startingAt: startIndex
"Put a String or a ByteArray onto the stream starting at the given position.
Currently a large collection will allocate a large buffer."

| toPut |
anInteger = 0 ifTrue: [
^ aCollection ].
toPut := binary ifTrue: [ aCollection asByteArray ] ifFalse: [ aCollection asString ].
self adjustOutBuffer: anInteger.
outBuffer replaceFrom: outNextToWrite to: outNextToWrite + anInteger - 1 with: toPut startingAt: startIndex.
outNextToWrite := outNextToWrite + anInteger.
self checkFlush
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name" : "SocketStream"
}