Ejemplo n.º 1
0
 /// <nodoc />
 public IOCounters(IOTypeCounters readCounters, IOTypeCounters writeCounters, IOTypeCounters otherCounters)
 {
     ReadCounters  = readCounters;
     WriteCounters = writeCounters;
     OtherCounters = otherCounters;
 }
Ejemplo n.º 2
0
 /// <nodoc />
 public static IOCounters Deserialize(BinaryReader reader)
 => new IOCounters(
     readCounters:  IOTypeCounters.Deserialize(reader),
     writeCounters: IOTypeCounters.Deserialize(reader),
     otherCounters: IOTypeCounters.Deserialize(reader));
Ejemplo n.º 3
0
 /// <summary>
 /// Creates an instance of <see cref="IOCounters"/> from <see cref="IO_COUNTERS"/>.
 /// </summary>
 public IOCounters(IO_COUNTERS nativeCounters)
 {
     ReadCounters  = new IOTypeCounters(nativeCounters.ReadOperationCount, nativeCounters.ReadTransferCount);
     WriteCounters = new IOTypeCounters(nativeCounters.WriteOperationCount, nativeCounters.WriteTransferCount);
     OtherCounters = new IOTypeCounters(nativeCounters.OtherOperationCount, nativeCounters.OtherTransferCount);
 }