Interface Slice


public interface Slice
Wrapper type for byte slices.
  • Field Details Link icon

    • EMPTY Link icon

      static final Slice EMPTY
  • Method Details Link icon

    • readableBytes Link icon

      int readableBytes()
    • copyTo Link icon

      void copyTo(ByteBuffer target)
    • copyTo Link icon

      void copyTo(byte[] target)
    • copyTo Link icon

      void copyTo(byte[] target, int targetOffset)
    • byteAt Link icon

      byte byteAt(int position)
    • asReadOnlyByteBuffer Link icon

      ByteBuffer asReadOnlyByteBuffer()
    • toByteArray Link icon

      byte[] toByteArray()
    • wrap Link icon

      static Slice wrap(ByteBuffer byteBuffer)
      Wrap a ByteBuffer. This will not copy the buffer.
    • wrap Link icon

      static Slice wrap(byte[] bytes)
    • wrap Link icon

      static Slice wrap(String str)