2 writes to _header
Microsoft.ML.Data (2)
DataLoadSave\Binary\BinaryLoader.cs (2)
781
_header
= InitHeader();
871
_header
= InitHeader();
19 references to _header
Microsoft.ML.Data (19)
DataLoadSave\Binary\BinaryLoader.cs (19)
147
_ectx.Assert(0 <= index && index < parent.
_header
.ColumnCount);
238
long rc = _parent.
_header
.RowCount;
261
_ectx.CheckDecode(Header.HeaderSize <= offset && offset <= _parent.
_header
.TailOffset - compLen, "block offset out of range");
346
ch.CheckDecode(Header.HeaderSize <= blockOffset && blockOffset <= _parent.
_header
.TailOffset,
351
ch.CheckDecode(0 < blockSize && blockSize <= _parent.
_header
.TailOffset - blockOffset,
739
private long RowCount =>
_header
.RowCount;
1094
if (
_header
.ColumnCount > 0)
1095
_stream.Seek(
_header
.TableOfContentsOffset, SeekOrigin.Begin);
1102
for (int c = 0; c <
_header
.ColumnCount; ++c)
1113
if (!(0 < rowsPerBlock || (rowsPerBlock == 0 &&
_header
.RowCount == 0)))
1125
if (
_header
.RowCount > 0)
1128
long lookupLen = (
_header
.RowCount - 1) / rowsPerBlock + 1;
1129
ch.CheckDecode(Header.HeaderSize <= lookupOffset && lookupOffset <=
_header
.TailOffset - 16 * lookupLen,
1133
ch.CheckDecode(metadataTocOffset == 0 || Header.HeaderSize <= metadataTocOffset && metadataTocOffset <=
_header
.TailOffset,
1183
if (poolSize >
_header
.RowCount)
1184
poolSize =
_header
.RowCount;
1195
var ourRand = _randomShufflePoolRows ==
_header
.RowCount ? null : rand;
1261
_lastValidCounter = _parent.
_header
.RowCount - 1;
2151
Header header = loader.
_header
;