2 writes to _lengthAndPoolFlag
Microsoft.Extensions.Caching.Hybrid (2)
Internal\BufferChunk.cs (2)
31
_lengthAndPoolFlag
= array!.Length;
47
_lengthAndPoolFlag
= length | (returnToPool ? FlagReturnToPool : 0);
3 references to _lengthAndPoolFlag
Microsoft.Extensions.Caching.Hybrid (3)
Internal\BufferChunk.cs (3)
23
public int Length =>
_lengthAndPoolFlag
& ~FlagReturnToPool;
25
public bool ReturnToPool => (
_lengthAndPoolFlag
& FlagReturnToPool) != 0;
89
Unsafe.AsRef(in copy.
_lengthAndPoolFlag
) &= ~FlagReturnToPool;