public interface GrpcMessageCodec
Modifier and Type | Method and Description |
---|---|
Buffer |
decode(Buffer src,
int offset,
int length,
BufferAllocator allocator)
|
Buffer |
encode(Buffer src,
int offset,
int length,
BufferAllocator allocator)
|
Buffer encode(Buffer src, int offset, int length, BufferAllocator allocator)
src
- the Buffer
to encodeoffset
- the offset of the source to start reading fromlength
- the total length available for readingallocator
- the BufferAllocator
to use for allocating auxiliary buffers or the returned bufferBuffer
the result buffer with the content encodedBuffer decode(Buffer src, int offset, int length, BufferAllocator allocator)
src
- the Buffer
to decodeoffset
- the offset of the source to start reading fromlength
- the total length available for readingallocator
- the BufferAllocator
to use for allocating auxiliary buffers or the returned bufferBuffer
the result buffer with the content decoded