Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithSize ¶
func NewWithSize(baseCodec codec.Codec, lengthFieldOffset, lengthAdjustment, initialBytesToStrip, maxBodySize int) codec.Codec
NewWithSize create IntLengthFieldBased codec initialBytesToStrip + lengthFieldOffset + 4(length) lengthAdjustment, some case as below: 1. 0 : base decoder received: body 2. -4: base decoder received: 4(length) + body 3. -(4 + lengthFieldOffset): base decoder received: lengthFieldOffset + 4(length) + body 4. -(4 + lengthFieldOffset + initialBytesToStrip): base decoder received: initialBytesToStrip + lengthFieldOffset + 4(length)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.