C# 클래스 Havoc.Disk

상속: Havoc.Scenario
파일 보기 프로젝트 열기: bchavez/Havoc

공개 메소드들

메소드 설명
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