Skip to content

Adding char const* buffer() const noexcept; method cpp #601

Closed
@kdoherty2

Description

@kdoherty2

In order to be able to pass a const reference of the SBE Message and access the underlying buffer
consider adding method:

char const* buffer() const SBE_NOEXCEPT;

char const* buffer() const SBE_NOEXCEPT
{
    return m_buffer;
} 

The generator only generates a non-const version:

char* buffer() SBE_NOEXCEPT
{
     return m_buffer;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions