5 writes to _bytesUsed
System.IO.Compression (5)
System\IO\Compression\DeflateManaged\OutputWindow.cs (5)
29
_bytesUsed
= 0;
38
++
_bytesUsed
;
47
_bytesUsed
+= length;
110
_bytesUsed
+= copied;
147
_bytesUsed
-= copied;
9 references to _bytesUsed
System.IO.Compression (9)
System\IO\Compression\DeflateManaged\OutputWindow.cs (9)
35
Debug.Assert(
_bytesUsed
< WindowSize, "Can't add byte when window is full!");
43
Debug.Assert((
_bytesUsed
+ length) <= WindowSize, "No Enough space");
88
length = Math.Min(Math.Min(length, WindowSize -
_bytesUsed
), input.AvailableBytes);
115
public int FreeBytes => WindowSize -
_bytesUsed
;
118
public int AvailableBytes =>
_bytesUsed
;
125
if (output.Length >
_bytesUsed
)
129
output = output.Slice(0,
_bytesUsed
);
133
copy_end = (_end -
_bytesUsed
+ output.Length) & WindowMask; // copy length of bytes
148
Debug.Assert(
_bytesUsed
>= 0, "check this function and find why we copied more bytes than we have");