=art add metadata field to the header, #20703

This commit is contained in:
Konrad Malawski 2016-09-05 22:44:22 +02:00 committed by Patrik Nordwall
parent 392ca5ecce
commit c20b6088cd
16 changed files with 857 additions and 42 deletions

View file

@ -178,11 +178,15 @@ object ByteString {
val copyLength = Math.min(buffer.remaining, offset + length)
if (copyLength > 0) {
buffer.put(bytes, offset, copyLength)
drop(copyLength)
}
copyLength
}
/** INTERNAL API: Specialized for internal use, appending ByteString1C to a ByteStringBuilder. */
private[akka] def appendToBuilder(buffer: ByteStringBuilder) = {
buffer.putByteArrayUnsafe(bytes)
}
}
/** INTERNAL API: ByteString backed by exactly one array, with start / end markers */