C# Класс Havoc.Disk

Наследование: Havoc.Scenario
Показать файл Открыть проект

Открытые методы

Метод Описание
CachedWrites ( string path, Array buffer, TimeSpan? writeDelay = null, CancellationToken cancellationToken = default ) : void

Write the same buffer to disk repeatedly.

CachedWrites ( string path, int size = OneMB, TimeSpan? writeDelay = null, CancellationToken cancellationToken = default ) : void

Allocate an array of data and repeatedly write the buffer to disk.

Описание методов

CachedWrites() публичный Метод

Write the same buffer to disk repeatedly.
public CachedWrites ( string path, Array buffer, TimeSpan? writeDelay = null, CancellationToken cancellationToken = default ) : void
path string The file path to write to. If the file exists, the file will be overwritten.
buffer Array The buffer to write to disk.
writeDelay TimeSpan? The amount of time to wait before each buffered write. When null, no delay - write as fast as possible.
cancellationToken CancellationToken
Результат void

CachedWrites() публичный Метод

Allocate an array of data and repeatedly write the buffer to disk.
public CachedWrites ( string path, int size = OneMB, TimeSpan? writeDelay = null, CancellationToken cancellationToken = default ) : void
path string The file path to write to. If the file exists, the file will be over written.
size int The size in bytes of the buffer to allocate. Default, 1MB.
writeDelay TimeSpan? The amount of time to wait before each buffered write. When null, no delay - write as fast as possible.
cancellationToken CancellationToken
Результат void