Skip to content

ByteString.IndexOf throws IndexOutOfRangeException after concating two ByteStrings #1852

@marcpiechura

Description

@marcpiechura

After concating two ByteString's IndexOf throws the exception if the element didn't exist.

Example:

var b = ByteString.Create(new byte[] {1}) + ByteString.Create(new byte[] {2});

b.IndexOf(3);

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