Skip to content

WriteDelimitedTo(IBufferWriter<byte>) #21300

Open
@verdie-g

Description

@verdie-g

What language does this apply to?

C#

Describe the problem you are trying to solve.

WriteDelimitedTo(Stream) but for IBufferWriter<byte>.

My exact use-case is writing the Prometheus metrics protobuf, it expects the length of the data before the proto.

Describe the solution you'd like

Add

public static class MessageExtensions
{
    public static void WriteDelimitedTo(this IMessage message, IBufferWriter<byte> output)
    {
    }
}

Describe alternatives you've considered

I haven't found a work-around yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions