Package org.apache.pekko.util
Class CompactByteString$
java.lang.Object
org.apache.pekko.util.CompactByteString$
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CompactByteString$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(byte[] bytes) Creates a new CompactByteString by copying a byte array.Creates a new CompactByteString by encoding a String as UTF-8.Creates a new CompactByteString by encoding a String with a charset.Creates a new CompactByteString by encoding a String with a charset.apply(ByteBuffer bytes) Creates a new CompactByteString by copying bytes from a ByteBuffer.Creates a new CompactByteString by copying bytes.apply(scala.collection.immutable.Seq<T> bytes, scala.math.Integral<T> num) Creates a new CompactByteString by converting from integral numbers to bytes.Creates a new CompactByteString by traversing bytes.empty()fromArray(byte[] array, int offset, int length) Creates a new CompactByteString by copying length bytes starting at offset from an Array.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
CompactByteString$
public CompactByteString$()
-
-
Method Details
-
apply
Creates a new CompactByteString by copying a byte array. -
apply
Creates a new CompactByteString by copying bytes. -
apply
Creates a new CompactByteString by traversing bytes. -
apply
public <T> CompactByteString apply(scala.collection.immutable.Seq<T> bytes, scala.math.Integral<T> num) Creates a new CompactByteString by converting from integral numbers to bytes. -
apply
Creates a new CompactByteString by copying bytes from a ByteBuffer. -
apply
Creates a new CompactByteString by encoding a String as UTF-8. -
apply
Creates a new CompactByteString by encoding a String with a charset. -
apply
Creates a new CompactByteString by encoding a String with a charset. -
fromArray
Creates a new CompactByteString by copying length bytes starting at offset from an Array. -
empty
-