Package io.activej.csp.binary.codec
Interface ByteBufsCodec<I,O>
- All Known Implementing Classes:
OfDelimiter,OfStreamCodecs
public interface ByteBufsCodec<I,O>
-
Method Summary
-
Method Details
-
encode
-
tryDecode
@Nullable I tryDecode(io.activej.bytebuf.ByteBufs bufs) throws io.activej.common.exception.MalformedDataException - Throws:
io.activej.common.exception.MalformedDataException
-
transform
default <I1,O1> ByteBufsCodec<I1,O1> transform(io.activej.common.function.DecoderFunction<? super I, ? extends I1> decoder, Function<? super O1, ? extends O> encoder)
-