public interface GrpcMessageCodec
| Modifier and Type | Method and Description |
|---|---|
Buffer |
decode(Buffer src,
int offset,
int length,
BufferAllocator allocator)
Take a
Buffer and decode its contents resulting in a Buffer with the decoded content. |
Buffer |
encode(Buffer src,
int offset,
int length,
BufferAllocator allocator)
Take a
Buffer and encode its contents resulting in a Buffer with the encoded contents. |
Buffer encode(Buffer src,
int offset,
int length,
BufferAllocator allocator)
Buffer and encode its contents resulting in a Buffer with the encoded contents.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)
Buffer and decode its contents resulting in a Buffer with the decoded content.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