@FunctionalInterface
public interface ByteBufWriter<T>
Modifier and Type | Method and Description |
---|---|
void |
write(io.netty.buffer.ByteBuf buffer,
T value)
Writes an object to a type to a ByteBuf.
|
void write(io.netty.buffer.ByteBuf buffer, T value) throws java.lang.Exception
buffer
- buffer to write tovalue
- value to writejava.lang.Exception
- if it failed to write