4 writes to _remaining
Microsoft.ML.Core (4)
Utilities\SubsetStream.cs (4)
46
_remaining
= length.GetValueOrDefault(-1);
68
_remaining
-= retval;
86
_remaining
-= newPosition - oldPosition;
126
_remaining
-= count;
10 references to _remaining
Microsoft.ML.Core (10)
Utilities\SubsetStream.cs (10)
63
if (
_remaining
< 0)
65
if (count >
_remaining
)
66
count = (int)
_remaining
;
85
if (
_remaining
>= 0)
109
if (
_remaining
< 0)
111
return Position +
_remaining
;
122
if (
_remaining
>= 0 && count >
_remaining
)
123
throw Contracts.Except("cannot write {0} bytes to stream bounded at {1} bytes", count,
_remaining
);
125
if (
_remaining
>= 0)