Skip to content

Should we add extention method to write ReadOnlySequence to IBufferWriter ? #25443

@AlexRadch

Description

@AlexRadch

Now System.Buffers.BuffersExtensions have method to write ReadOnlySpan to IBufferWriter. Should we add similar method for ReadOnlySequence?

    public static class BuffersExtensions
    {
        public static void Write<T>(this IBufferWriter<T> bufferWriter, ReadOnlySpan<T> source);
        // new
        public static void Write<T>(this IBufferWriter<T> bufferWriter, ReadOnlySequence<T> source);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-suggestionEarly API idea and discussion, it is NOT ready for implementationarea-System.Memory

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions