-
public final class ByteStringsKt
-
-
Method Summary
Modifier and Type Method Description final static ByteStringtoByteStringUtf8(String $self)Encodes this String into a sequence of UTF-8 bytes and returns the result as a ByteString. final static ByteStringplus(ByteString $self, ByteString other)Concatenates the given ByteString to this one. final static Byteget(ByteString $self, Integer index)Gets the byte at index. final static ByteStringtoByteString(ByteArray $self)Returns a copy of this ByteArray as an immutable ByteString. final static ByteStringtoByteString(ByteBuffer $self)Copies the remaining bytes from this ByteBuffer to a ByteString. -
-
Method Detail
-
toByteStringUtf8
final static ByteString toByteStringUtf8(String $self)
Encodes this String into a sequence of UTF-8 bytes and returns the result as a ByteString.
-
plus
final static ByteString plus(ByteString $self, ByteString other)
Concatenates the given ByteString to this one.
-
toByteString
final static ByteString toByteString(ByteArray $self)
Returns a copy of this ByteArray as an immutable ByteString.
-
toByteString
final static ByteString toByteString(ByteBuffer $self)
Copies the remaining bytes from this ByteBuffer to a ByteString.
-
-
-
-