Class ByteBuffer

java.lang.Object
it.auties.buffer.ByteBuffer

public class ByteBuffer extends Object
  • Method Details

    • newBuffer

      public static ByteBuffer newBuffer()
    • empty

      public static ByteBuffer empty()
    • of

      public static ByteBuffer of(int size)
    • of

      public static ByteBuffer of(byte... input)
    • of

      public static ByteBuffer of(byte[]... input)
    • of

      public static ByteBuffer of(String input)
    • ofNullable

      public static ByteBuffer ofNullable(String input)
    • ofBase64

      public static ByteBuffer ofBase64(String input)
    • ofNullableBase64

      public static ByteBuffer ofNullableBase64(String input)
    • ofHex

      public static ByteBuffer ofHex(String input)
    • ofNullableHex

      public static ByteBuffer ofNullableHex(String input)
    • random

      public static ByteBuffer random(int length)
    • allocate

      public static ByteBuffer allocate(int length)
    • prepend

      public ByteBuffer prepend(ByteBuffer array)
    • prependNullable

      public ByteBuffer prependNullable(ByteBuffer array)
    • prepend

      public ByteBuffer prepend(byte... array)
    • prependNullable

      public ByteBuffer prependNullable(byte... array)
    • append

      public ByteBuffer append(ByteBuffer array)
    • appendNullable

      public ByteBuffer appendNullable(ByteBuffer array)
    • append

      public ByteBuffer append(byte... array)
    • appendNullable

      public ByteBuffer appendNullable(byte... array)
    • cut

      public ByteBuffer cut(int end)
    • slice

      public ByteBuffer slice(int start)
    • slice

      public ByteBuffer slice(int start, int end)
    • fill

      public ByteBuffer fill(char value)
    • fill

      public ByteBuffer fill(Number value)
    • fill

      public ByteBuffer fill(char value, int length)
    • fill

      public ByteBuffer fill(Number value, int length)
    • at

      public Optional<Byte> at(int index)
    • indexOf

      public OptionalInt indexOf(char entry)
    • indexOf

      public OptionalInt indexOf(Number entry)
    • assertSize

      public ByteBuffer assertSize(int size)
    • writeByte

      public ByteBuffer writeByte(int input)
    • writeByte

      public ByteBuffer writeByte(int input, int index)
    • writeUnsignedByte

      public ByteBuffer writeUnsignedByte(int input)
    • writeUnsignedByte

      public ByteBuffer writeUnsignedByte(int input, int index)
    • writeShort

      public ByteBuffer writeShort(int input)
    • writeShort

      public ByteBuffer writeShort(int input, int index)
    • writeUnsignedShort

      public ByteBuffer writeUnsignedShort(short input)
    • writeUnsignedShort

      public ByteBuffer writeUnsignedShort(short input, int index)
    • writeInt

      public ByteBuffer writeInt(int input)
    • writeInt

      public ByteBuffer writeInt(int input, int index)
    • writeUnsignedInt

      public ByteBuffer writeUnsignedInt(int input)
    • writeUnsignedInt

      public ByteBuffer writeUnsignedInt(int input, int index)
    • writeLong

      public ByteBuffer writeLong(long input)
    • writeLong

      public ByteBuffer writeLong(long input, int index)
    • writeUnsignedLong

      public ByteBuffer writeUnsignedLong(long input)
    • writeUnsignedLong

      public ByteBuffer writeUnsignedLong(long input, int index)
    • writeBigInt

      public ByteBuffer writeBigInt(BigInteger input)
    • writeBigInt

      public ByteBuffer writeBigInt(BigInteger input, int index)
    • writeNullableBigInt

      public ByteBuffer writeNullableBigInt(BigInteger input)
    • writeNullableBigInt

      public ByteBuffer writeNullableBigInt(BigInteger input, int index)
    • writeBytes

      public ByteBuffer writeBytes(byte[] bytes)
    • writeBytes

      public ByteBuffer writeBytes(byte[] bytes, int index)
    • writeNullableBytes

      public ByteBuffer writeNullableBytes(byte[] bytes, int index)
    • readByte

      public byte readByte()
    • readByte

      public byte readByte(int index)
    • readUnsignedByte

      public int readUnsignedByte()
    • readUnsignedByte

      public int readUnsignedByte(int index)
    • readShort

      public short readShort()
    • readShort

      public short readShort(int index)
    • readUnsignedShort

      public int readUnsignedShort()
    • readUnsignedShort

      public int readUnsignedShort(int index)
    • readInt

      public int readInt()
    • readInt

      public int readInt(int index)
    • readUnsignedInt

      public long readUnsignedInt()
    • readUnsignedInt

      public long readUnsignedInt(int index)
    • readLong

      public long readLong()
    • readLong

      public long readLong(int index)
    • readUnsignedLong

      public BigInteger readUnsignedLong()
    • readUnsignedLong

      public BigInteger readUnsignedLong(int index)
    • readBigInt

      public BigInteger readBigInt(int length)
    • readBigInt

      public BigInteger readBigInt(int index, int length)
    • readBuffer

      public ByteBuffer readBuffer(int length)
    • readBuffer

      public ByteBuffer readBuffer(int index, int length)
    • readBytes

      public byte[] readBytes(int length)
    • readBytes

      public byte[] readBytes(int index, int length)
    • size

      public int size()
    • readableBytes

      public int readableBytes()
    • writableBytes

      public int writableBytes()
    • isReadable

      public boolean isReadable()
    • isWritable

      public boolean isWritable()
    • toByteArray

      public byte[] toByteArray()
    • toNioBuffer

      public ByteBuffer toNioBuffer()
    • copy

      public ByteBuffer copy()
    • clear

      public ByteBuffer clear()
    • remaining

      public ByteBuffer remaining()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toOutputStream

      public ByteArrayOutputStream toOutputStream() throws IOException
      Throws:
      IOException
    • toHex

      public String toHex()
    • toBase64

      public String toBase64()
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • contentEquals

      public boolean contentEquals(Object other)