Package 

Class ByteStringsKt

    • Method Summary

      Modifier and Type Method Description
      final static ByteString toByteStringUtf8(String $self) Encodes this String into a sequence of UTF-8 bytes and returns the result as a ByteString.
      final static ByteString plus(ByteString $self, ByteString other) Concatenates the given ByteString to this one.
      final static Byte get(ByteString $self, Integer index) Gets the byte at index.
      final static ByteString toByteString(ByteArray $self) Returns a copy of this ByteArray as an immutable ByteString.
      final static ByteString toByteString(ByteBuffer $self) Copies the remaining bytes from this ByteBuffer to a ByteString.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.

      • get

         final static Byte get(ByteString $self, Integer index)

        Gets the byte at index.