Efficiently concatenate another ByteString.
Efficiently concatenate another ByteString.
Returns a read-only ByteBuffer that directly wraps this ByteString if it is not fragmented.
Returns a read-only ByteBuffer that directly wraps this ByteString if it is not fragmented.
Create a new ByteString with all contents compacted into a single byte array.
Create a new ByteString with all contents compacted into a single byte array.
Copy as many bytes as possible to a ByteBuffer, starting from it's current position.
Copy as many bytes as possible to a ByteBuffer, starting from it's current position. This method will not overflow the buffer.
a ByteBuffer to copy bytes to
the number of bytes actually copied
Decodes this ByteString using a charset to produce a String.
Decodes this ByteString using a charset to produce a String.
map method that will automatically cast Int back into Byte.
map method that will automatically cast Int back into Byte.
(Changed in version 2.9.0) The behavior of scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
Creates a new ByteBuffer with a copy of all bytes contained in this ByteString.
Creates a new ByteBuffer with a copy of all bytes contained in this ByteString.
(Changed in version 2.9.0) transpose
throws an IllegalArgumentException
if collections are not uniformly sized.
Decodes this ByteString as a UTF-8 encoded String.
Decodes this ByteString as a UTF-8 encoded String.
(Since version 2.8.0) use iterator' instead
(Since version 2.8.0) use corresponds
instead
(Since version 2.8.0) Use indexWhere(p) instead.
(Since version 2.8.0) use lastIndexWhere
instead
(Since version 2.8.0) use head' instead
(Since version 2.8.0) use headOption' instead
(Since version 2.8.0) use view' instead
(Since version 2.8.0) use reverseIterator' instead
An unfragmented ByteString.