Interface ByteBufsDecoder<T>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ByteBufsDecoder<T>
  • Method Details

    • tryDecode

      @Nullable T tryDecode(io.activej.bytebuf.ByteBufs bufs) throws io.activej.common.exception.MalformedDataException
      Throws:
      io.activej.common.exception.MalformedDataException
    • andThen

      default <V> ByteBufsDecoder<V> andThen(DecoderFunction<? super T,? extends V> after)
    • assertBytes

      static ByteBufsDecoder<byte[]> assertBytes(byte[] data)
    • ofFixedSize

      static ByteBufsDecoder<io.activej.bytebuf.ByteBuf> ofFixedSize(int length)
    • ofNullTerminatedBytes

      static ByteBufsDecoder<io.activej.bytebuf.ByteBuf> ofNullTerminatedBytes()
    • ofNullTerminatedBytes

      static ByteBufsDecoder<io.activej.bytebuf.ByteBuf> ofNullTerminatedBytes(int maxSize)
    • ofCrTerminatedBytes

      static ByteBufsDecoder<io.activej.bytebuf.ByteBuf> ofCrTerminatedBytes()
    • ofCrTerminatedBytes

      static ByteBufsDecoder<io.activej.bytebuf.ByteBuf> ofCrTerminatedBytes(int maxSize)
    • ofCrlfTerminatedBytes

      static ByteBufsDecoder<io.activej.bytebuf.ByteBuf> ofCrlfTerminatedBytes()
    • ofCrlfTerminatedBytes

      static ByteBufsDecoder<io.activej.bytebuf.ByteBuf> ofCrlfTerminatedBytes(int maxSize)
    • ofIntSizePrefixedBytes

      static ByteBufsDecoder<io.activej.bytebuf.ByteBuf> ofIntSizePrefixedBytes()
    • ofIntSizePrefixedBytes

      static ByteBufsDecoder<io.activej.bytebuf.ByteBuf> ofIntSizePrefixedBytes(int maxSize)
    • ofShortSizePrefixedBytes

      static ByteBufsDecoder<io.activej.bytebuf.ByteBuf> ofShortSizePrefixedBytes()
    • ofShortSizePrefixedBytes

      static ByteBufsDecoder<io.activej.bytebuf.ByteBuf> ofShortSizePrefixedBytes(int maxSize)
    • ofByteSizePrefixedBytes

      static ByteBufsDecoder<io.activej.bytebuf.ByteBuf> ofByteSizePrefixedBytes()
    • ofByteSizePrefixedBytes

      static ByteBufsDecoder<io.activej.bytebuf.ByteBuf> ofByteSizePrefixedBytes(int maxSize)
    • ofVarIntSizePrefixedBytes

      static ByteBufsDecoder<io.activej.bytebuf.ByteBuf> ofVarIntSizePrefixedBytes()
    • ofVarIntSizePrefixedBytes

      static ByteBufsDecoder<io.activej.bytebuf.ByteBuf> ofVarIntSizePrefixedBytes(int maxSize)