1 instantiation of Header
Microsoft.ML.Data (1)
DataLoadSave\Transpose\TransposeLoader.cs (1)
471
_header = new
Header
()
26 references to Header
Microsoft.ML.Data (26)
DataLoadSave\Transpose\TransposeLoader.cs (19)
157
Host.CheckDecode(_offset == 0 || (
Header
.HeaderSize <= _offset && _offset <= _parent._header.TailOffset));
328
private readonly
Header
_header;
557
private unsafe
Header
InitHeader(BinaryReader reader)
559
byte[] headerBytes = new byte[
Header
.HeaderSize];
560
int cb = reader.Read(headerBytes, 0,
Header
.HeaderSize);
561
if (cb !=
Header
.HeaderSize)
564
cb,
Header
.HeaderSize);
566
Header
header;
569
Marshal.Copy(headerBytes, 0, (IntPtr)(&header),
Header
.HeaderSize);
575
_host.CheckDecode(header.Signature ==
Header
.SignatureValue,
582
Header
.VersionToString(header.CompatibleVersion),
Header
.VersionToString(header.Version));
588
Header
.VersionToString(header.Version),
Header
.VersionToString(ReaderFirstVersion));
593
Header
.VersionToString(header.CompatibleVersion),
Header
.VersionToString(ReaderVersion));
599
if (header.ColumnCount != 0 && header.SubIdvTableOffset <
Header
.HeaderSize)
603
if (header.TailOffset <
Header
.HeaderSize)
607
_host.CheckDecode(tailSig ==
Header
.TailSignatureValue, "Incorrect tail signature");
DataLoadSave\Transpose\TransposeSaver.cs (7)
110
TransposeLoader.
Header
header = default(TransposeLoader.
Header
);
111
header.Signature = TransposeLoader.
Header
.SignatureValue;
112
header.Version = TransposeLoader.
Header
.WriterVersion;
113
header.CompatibleVersion = TransposeLoader.
Header
.WriterVersion;
125
byte[] headerBytes = new byte[TransposeLoader.
Header
.HeaderSize];
174
writer.Write(TransposeLoader.
Header
.TailSignatureValue);