コード例 #1
0
 internal Enumerator(HttpResponseTrailers collection)
 {
     _collection        = collection;
     _bits              = collection._bits;
     _next              = 0;
     _current           = default;
     _hasUnknown        = collection.MaybeUnknown != null;
     _unknownEnumerator = _hasUnknown
         ? collection.MaybeUnknown.GetEnumerator()
         : default;
 }
コード例 #2
0
 internal Enumerator(HttpResponseTrailers collection)
 {
     _collection        = collection;
     _currentBits       = collection._bits;
     _next              = _currentBits != 0 ? BitOperations.TrailingZeroCount(_currentBits) : -1;
     _current           = default;
     _currentKnownType  = default;
     _hasUnknown        = collection.MaybeUnknown != null;
     _unknownEnumerator = _hasUnknown
         ? collection.MaybeUnknown !.GetEnumerator()
         : default;