Class UnsafeCollectionOperations
Inherited Members
Namespace: Google.Protobuf
Assembly: Google.Protobuf.dll
Syntax
public static class UnsafeCollectionOperations
Methods
AsSpan<T>(RepeatedField<T>)
Declaration
public static Span<T> AsSpan<T>(RepeatedField<T> field)
Parameters
| Type | Name | Description |
|---|---|---|
| RepeatedField<T> | field |
Returns
| Type | Description |
|---|---|
| Span<T> |
Type Parameters
| Name | Description |
|---|---|
| T |
SetCount<T>(RepeatedField<T>, int)
Declaration
public static void SetCount<T>(RepeatedField<T> field, int count)
Parameters
| Type | Name | Description |
|---|---|---|
| RepeatedField<T> | field | |
| int | count |
Type Parameters
| Name | Description |
|---|---|
| T |