1 instantiation of KeyValuePairEncodingRange
System.Formats.Cbor (1)
System\Formats\Cbor\Writer\CborWriter.Map.cs (1)
125
var currentKeyValueRange = new
KeyValuePairEncodingRange
(
16 references to KeyValuePairEncodingRange
System.Formats.Cbor (16)
System\Formats\Cbor\Writer\CborWriter.cs (3)
32
private List<
KeyValuePairEncodingRange
>? _keyValuePairEncodingRanges; // all key/value pair encoding ranges
431
List<
KeyValuePairEncodingRange
>? keyValuePairEncodingRanges,
453
public List<
KeyValuePairEncodingRange
>? KeyValuePairEncodingRanges { get; }
System\Formats\Cbor\Writer\CborWriter.Map.cs (13)
15
private Stack<List<
KeyValuePairEncodingRange
>>? _pooledKeyValuePairEncodingRangeLists;
123
List<
KeyValuePairEncodingRange
> keyValuePairEncodingRanges = GetKeyValueEncodingRanges();
125
var
currentKeyValueRange = new KeyValuePairEncodingRange(
136
KeyValuePairEncodingRange
previousKeyValueRange = keyValuePairEncodingRanges[keyValuePairEncodingRanges.Count - 1];
165
foreach (
KeyValuePairEncodingRange
range in _keyValuePairEncodingRanges)
213
private List<
KeyValuePairEncodingRange
> GetKeyValueEncodingRanges()
221
_pooledKeyValuePairEncodingRangeLists.TryPop(out List<
KeyValuePairEncodingRange
>? result))
227
return _keyValuePairEncodingRanges = new List<
KeyValuePairEncodingRange
>();
234
_pooledKeyValuePairEncodingRangeLists ??= new Stack<List<
KeyValuePairEncodingRange
>>();
260
private sealed class KeyEncodingComparer : IComparer<
KeyValuePairEncodingRange
>,
275
private Span<byte> GetKeyEncoding(in
KeyValuePairEncodingRange
range)
290
public int Compare(
KeyValuePairEncodingRange
x,
KeyValuePairEncodingRange
y)