Class OfVarIntSizePrefixed
java.lang.Object
io.activej.csp.binary.decoder.impl.OfVarIntSizePrefixed
- All Implemented Interfaces:
ByteBufsDecoder<io.activej.bytebuf.ByteBuf>
public final class OfVarIntSizePrefixed
extends Object
implements ByteBufsDecoder<io.activej.bytebuf.ByteBuf>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable io.activej.bytebuf.ByteBuftryDecode(io.activej.bytebuf.ByteBufs bufs) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.csp.binary.decoder.ByteBufsDecoder
andThen
-
Field Details
-
scanner
-
maxSize
public final int maxSize
-
-
Constructor Details
-
OfVarIntSizePrefixed
public OfVarIntSizePrefixed(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:
tryDecodein interfaceByteBufsDecoder<io.activej.bytebuf.ByteBuf>- Throws:
io.activej.common.exception.MalformedDataException
-