3 writes to length
Microsoft.AspNetCore.OutputCaching (3)
FormatterBinaryWriter.cs (3)
29offset = length = 0; 116length = span.Length; 128length = offset = 0;
7 references to length
Microsoft.AspNetCore.OutputCaching (7)
FormatterBinaryWriter.cs (7)
39return MemoryMarshal.CreateSpan(ref Unsafe.Add(ref root, offset), length - offset); 50Debug.Assert(length == 0 && offset == 0); 55Debug.Assert(offset >= 0 && offset <= length); 56Debug.Assert(length > 0); 66if (offset < length) 91if (bytes <= length - offset) 182else if ((offset + value.Length) <= length)