20 references to HeaderSize
Microsoft.ML.Data (20)
DataLoadSave\Binary\BinaryLoader.cs (15)
150
_ectx.Assert(metadataTocOffset == 0 || Header.
HeaderSize
<= metadataTocOffset);
152
_ectx.Assert(Header.
HeaderSize
<= lookupOffset);
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,
486
Contracts.Assert(Header.
HeaderSize
<= blockOffset);
1031
byte[] headerBytes = new byte[Header.
HeaderSize
];
1032
int cb = _reader.Read(headerBytes, 0, Header.
HeaderSize
);
1033
if (cb != Header.
HeaderSize
)
1036
cb, Header.
HeaderSize
);
1041
Marshal.Copy(headerBytes, 0, (IntPtr)(&header), Header.
HeaderSize
);
1080
if (header.ColumnCount != 0 && header.TableOfContentsOffset < Header.
HeaderSize
)
1084
if (header.TailOffset < Header.
HeaderSize
)
1129
ch.CheckDecode(Header.
HeaderSize
<= lookupOffset && lookupOffset <= _header.TailOffset - 16 * lookupLen,
1133
ch.CheckDecode(metadataTocOffset == 0 || Header.
HeaderSize
<= metadataTocOffset && metadataTocOffset <= _header.TailOffset,
2226
const long headTailSize = Header.
HeaderSize
+ sizeof(ulong);
DataLoadSave\Binary\BinarySaver.cs (4)
419
stream.Write(new byte[Header.
HeaderSize
], 0, Header.
HeaderSize
);
420
ch.CheckIO(stream.Position == Header.
HeaderSize
);
554
byte[] headerBytes = new byte[Header.
HeaderSize
];
DataLoadSave\Binary\Header.cs (1)
9
[StructLayout(LayoutKind.Explicit, Size =
HeaderSize
)]