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