AkkaByteStringBytesLike

final class AkkaByteStringBytesLike extends BytesLike[ByteString]
trait BytesLike[ByteString]
class Object
trait Matchable
class Any

Value members

Concrete methods

def asArray(bytes: ByteString): Array[Byte]
def asAsciiString(bytes: ByteString): String
def asBuffer(bytes: ByteString): ByteBuffer
def asString(bytes: ByteString, charset: Charset): String
def asUtf8String(bytes: ByteString): String
def ascii(s: String): ByteString
def concat(left: ByteString, right: ByteString): ByteString
def copyBuffer(buffer: ByteBuffer): ByteString
def copyFromArray(bytes: Array[Byte]): ByteString
def copyFromArray(bytes: Array[Byte], offset: Int, size: Int): ByteString
def copyToArray(value: ByteString, array: Array[Byte], sourceOffset: Int, targetOffset: Int, length: Int): Unit
def copyToBuffer(b: ByteString, buffer: ByteBuffer): Int
def eq(l: ByteString, r: ByteString): Boolean
def foreach(bytes: ByteString, f: Byte => Unit): Unit
def get(bytes: ByteString, i: Long): Byte
def indexOf(where: ByteString, that: Byte): Long
def indexOf(where: ByteString, that: Byte, from: Long): Long
def indexOfSlice(where: ByteString, that: ByteString): Long
def lastIndexOf(where: ByteString, that: Byte): Long
def lastIndexOfSlice(where: ByteString, that: ByteString): Long
def length(bytes: ByteString): Long
def mapWithIndex(bytes: ByteString, f: (Byte, Long) => Byte): ByteString
def slice(bytes: ByteString, start: Long, end: Long): ByteString
def utf8(s: String): ByteString
def wrapArray(bytes: Array[Byte]): ByteString

Inherited methods

def as[T2 : BytesLike](that: ByteString): T2
Inherited from:
BytesLike
def asHexString(bytes: ByteString): String
Inherited from:
BytesLike

Concrete fields

val empty: ByteString