Skip to content

Commit

Permalink
Merge branch 'copy_channel_buffer_after_decode_line'
Browse files Browse the repository at this point in the history
  • Loading branch information
Arya Asemanfar committed Mar 15, 2011
2 parents 65f09f7 + dc4c16b commit e40bd83
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -19,10 +19,10 @@ object ChannelBufferUtils {
val tokenLength = scratch.bytesBefore(stringToChannelBufferIndexFinder(delimiter))

if (tokenLength < 0) {
tokens += scratch
tokens += scratch.copy
scratch = scratch.slice(0, 0)
} else {
tokens += scratch.slice(0, tokenLength)
tokens += scratch.slice(0, tokenLength).copy
scratch = scratch.slice(tokenLength + skipDelimiter, scratch.capacity - tokenLength - skipDelimiter)
}
}
Expand Down

0 comments on commit e40bd83

Please sign in to comment.