/// <nodoc /> public IOCounters(IOTypeCounters readCounters, IOTypeCounters writeCounters, IOTypeCounters otherCounters) { ReadCounters = readCounters; WriteCounters = writeCounters; OtherCounters = otherCounters; }
/// <nodoc /> public static IOCounters Deserialize(BinaryReader reader) => new IOCounters( readCounters: IOTypeCounters.Deserialize(reader), writeCounters: IOTypeCounters.Deserialize(reader), otherCounters: IOTypeCounters.Deserialize(reader));
/// <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); }