public class NumberEncoder extends io.netty.handler.codec.MessageToByteEncoder<Number>
Number into the binary representation prepended with
a magic number ('F' or 0x46) and a 32-bit length prefix. For example, 42
will be encoded to { 'F', 0, 0, 0, 1, 42 }.| Constructor and Description |
|---|
NumberEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
Number msg,
io.netty.buffer.ByteBuf out) |
acceptOutboundMessage, allocateBuffer, isPreferDirect, writebind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharableCopyright © 2008–2020 The Netty Project. All rights reserved.