public final class HeaderTransport extends Object
| Modifier and Type | Method and Description |
|---|---|
static ThriftFrame |
decodeFrame(io.netty.buffer.ByteBufAllocator bufAllocator,
io.netty.buffer.ByteBuf buffer)
Decodes the ByteBuf into a HeaderFrame transferring the reference ownership.
|
static io.netty.buffer.ByteBuf |
encodeFrame(io.netty.buffer.ByteBufAllocator bufAllocator,
ThriftFrame frame)
Encodes the HeaderFrame into a ByteBuf transferring the reference ownership.
|
static Optional<FrameInfo> |
tryDecodeFrameInfo(io.netty.buffer.ByteBufAllocator bufAllocator,
io.netty.buffer.ByteBuf input) |
public static io.netty.buffer.ByteBuf encodeFrame(io.netty.buffer.ByteBufAllocator bufAllocator,
ThriftFrame frame)
bufAllocator - frame - frame to be encoded; reference count ownership is transferred to this methodpublic static ThriftFrame decodeFrame(io.netty.buffer.ByteBufAllocator bufAllocator, io.netty.buffer.ByteBuf buffer)
bufAllocator - allocator to allocated byteBuf to contain decoded result.buffer - buffer to be decoded; reference count ownership is transferred to this methodCopyright © 2012–2024. All rights reserved.