<PackageReference Include="Google.Protobuf" Version="3.35.0" />

Google.Protobuf.UnsafeCollectionOperations

public static class UnsafeCollectionOperations
An unsafe class that provides a set of methods to access the underlying data representations of collections.
namespace Google.Protobuf { public static class UnsafeCollectionOperations { public static Span<T> AsSpan<T>(RepeatedField<T> field); public static void SetCount<T>(RepeatedField<T> field, int count); } }