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