Method | Description | |
---|---|---|
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.
|
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 | |
return | void |
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 | |
return | void |