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