Class OfByteSizePrefixed

java.lang.Object
io.activej.csp.binary.decoder.impl.OfByteSizePrefixed
All Implemented Interfaces:
ByteBufsDecoder<io.activej.bytebuf.ByteBuf>

public class OfByteSizePrefixed extends Object implements ByteBufsDecoder<io.activej.bytebuf.ByteBuf>
  • Field Details

    • maxSize

      public final int maxSize
  • Constructor Details

    • OfByteSizePrefixed

      public OfByteSizePrefixed(int maxSize)
  • Method Details

    • tryDecode

      @Nullable public @Nullable io.activej.bytebuf.ByteBuf tryDecode(io.activej.bytebuf.ByteBufs bufs) throws io.activej.common.exception.MalformedDataException
      Specified by:
      tryDecode in interface ByteBufsDecoder<io.activej.bytebuf.ByteBuf>
      Throws:
      io.activej.common.exception.MalformedDataException