15 references to Size
Microsoft.ML.Core (15)
Data\ModelHeader.cs (15)
15
[StructLayout(LayoutKind.Explicit, Size =
Size
)]
109
Contracts.Assert(Marshal.SizeOf(typeof(ModelHeader)) ==
Size
);
117
header.FpModel = ModelHeader.
Size
;
120
byte[] headerBytes = new byte[ModelHeader.
Size
];
122
Contracts.CheckIO(writer.FpCur() == fpMin + ModelHeader.
Size
);
215
byte[] headerBytes = new byte[ModelHeader.
Size
];
218
Contracts.Assert(writer.FpCur() == fpMin + ModelHeader.
Size
);
228
Contracts.Check(header.FpModel == ModelHeader.
Size
);
307
Contracts.Check(Utils.Size(bytes) >=
Size
);
311
Marshal.Copy((IntPtr)pheader, bytes, 0,
Size
);
325
byte[] headerBytes = reader.ReadBytes(ModelHeader.
Size
);
326
Contracts.CheckDecode(headerBytes.Length == ModelHeader.
Size
);
374
Contracts.Check(Utils.Size(bytes) >=
Size
);
378
Marshal.Copy(bytes, 0, (IntPtr)pheader,
Size
);
398
Contracts.CheckDecode(header.FpModel ==
Size
);