=art add metadata field to the header, #20703
This commit is contained in:
parent
392ca5ecce
commit
c20b6088cd
16 changed files with 857 additions and 42 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue