2 writes to Reader
Microsoft.ML.Core (2)
Data\ModelLoadContext.cs (2)
87Reader = new BinaryReader(ent.Stream, Encoding.UTF8, leaveOpen: true); 110Reader = reader;
14 references to Reader
Microsoft.ML.Core (14)
Data\ModelLoadContext.cs (10)
90ModelHeader.BeginRead(out FpMin, out Header, out Strings, out LoaderAssemblyName, Reader); 94Reader.Dispose(); 111ModelHeader.BeginRead(out FpMin, out Header, out Strings, out LoaderAssemblyName, Reader); 116_ectx.Check(Reader.BaseStream.Position == FpMin + Header.FpModel); 121_ectx.Check(Reader.BaseStream.Position == FpMin + Header.FpModel); 139int id = Reader.ReadInt32(); 152int id = Reader.ReadInt32(); 163int id = Reader.ReadInt32(); 176ModelHeader.EndRead(FpMin, ref Header, Reader); 187Reader.Dispose();
Data\ModelLoading.cs (4)
244_ectx.Assert(Reader.BaseStream.Position == FpMin + Header.FpModel); 263_ectx.Assert(Reader.BaseStream.Position == FpMin + Header.FpModel); 277_ectx.Assert(Reader.BaseStream.Position == FpMin + Header.FpModel); 279Reader.BaseStream.Position = FpMin;