public final class TdsPacket extends TdsFragment
Header and data. Self-contained TDS packets must
consist of a single message that does not exceed the negotiated packet size.| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.ByteBuf |
encode(io.netty.buffer.ByteBufAllocator allocator)
Encode this packet using by obtaining a buffer from
ByteBufAllocator. |
io.netty.buffer.ByteBuf |
encode(io.netty.buffer.ByteBufAllocator allocator,
PacketIdProvider packetIdProvider)
Encode this packet using by obtaining a buffer from
ByteBufAllocator and calculate the packet Id from
PacketIdProvider. |
getByteBufpublic io.netty.buffer.ByteBuf encode(io.netty.buffer.ByteBufAllocator allocator)
ByteBufAllocator.allocator - the allocator.IllegalArgumentException - when ByteBufAllocator is null.public io.netty.buffer.ByteBuf encode(io.netty.buffer.ByteBufAllocator allocator,
PacketIdProvider packetIdProvider)
ByteBufAllocator and calculate the packet Id from
PacketIdProvider.allocator - the allocator.packetIdProvider - the PacketIdProvider.IllegalArgumentException - when ByteBufAllocator or PacketIdProvider is null.Copyright © 2023. All rights reserved.