Skip to content

For variable-length fields SBE forces the client to copy data to its own buffer #600

@kdoherty2

Description

@kdoherty2

An example generated stub MessageRejectedDecoder

provides only

public int getOriginalMessage(final MutableDirectBuffer dst, final int dstOffset, final int length)

and

public int getOriginalMessage(final byte[] dst, final int dstOffset, final int length)

It requires the client to copy data into its own buffer.

The SBE-generated stub could provide a convenient method to get a wrapped buffer view to the variable data field to prevent copying.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions