object CompactByteString extends Serializable
- Source
- ByteString.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CompactByteString
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
apply(string: String, charset: String): CompactByteString
Creates a new CompactByteString by encoding a String with a charset.
-
def
apply(string: String): CompactByteString
Creates a new CompactByteString by encoding a String as UTF-8.
-
def
apply(bytes: ByteBuffer): CompactByteString
Creates a new CompactByteString by copying bytes from a ByteBuffer.
-
def
apply[T](bytes: T*)(implicit num: Integral[T]): CompactByteString
Creates a new CompactByteString by converting from integral numbers to bytes.
-
def
apply(bytes: Byte*): CompactByteString
Creates a new CompactByteString by copying bytes.
-
def
apply(bytes: Array[Byte]): CompactByteString
Creates a new CompactByteString by copying a byte array.
- val empty: CompactByteString
-
def
fromArray(array: Array[Byte], offset: Int, length: Int): CompactByteString
Creates a new CompactByteString by copying length bytes starting at offset from an Array.