Packages

object CompactByteString extends Serializable

Source
ByteString.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CompactByteString
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply(string: String, charset: Charset): CompactByteString

    Creates a new CompactByteString by encoding a String with a charset.

  2. def apply(string: String, charset: String): CompactByteString

    Creates a new CompactByteString by encoding a String with a charset.

  3. def apply(string: String): CompactByteString

    Creates a new CompactByteString by encoding a String as UTF-8.

  4. def apply(bytes: ByteBuffer): CompactByteString

    Creates a new CompactByteString by copying bytes from a ByteBuffer.

  5. def apply[T](bytes: T*)(implicit num: Integral[T]): CompactByteString

    Creates a new CompactByteString by converting from integral numbers to bytes.

  6. def apply(bytes: Byte*): CompactByteString

    Creates a new CompactByteString by copying bytes.

  7. def apply(bytes: Array[Byte]): CompactByteString

    Creates a new CompactByteString by copying a byte array.

  8. val empty: CompactByteString
  9. def fromArray(array: Array[Byte], offset: Int, length: Int): CompactByteString

    Creates a new CompactByteString by copying length bytes starting at offset from an Array.