Метод | Описание | |
---|---|---|
Dispose ( ) : void |
Dispose the instance
|
|
FileBlockWriter ( string path, int blockSizeInBytes ) : System |
Create a new FileBlockWriter
|
|
SetSize ( int blocksCount ) : void |
Pre-allocates the file on disk with the given size. This improves speed compared to a fragmented file.
|
|
Write ( byte block, bool moveToNextBlock ) : void |
Write a block to disk and move to next block if specified
|
Метод | Описание | |
---|---|---|
CreateFile ( String fileName, int desiredAccess, FileShare shareMode, |
||
GetDiskFreeSpace ( string path, uint §orsPerCluster, uint &bytesPerSector, uint &numberOfFreeClusters, uint &totalNumberOfClusters ) : bool | ||
GetDriveSectorSize ( string path ) : uint |
Return the sector size of the volume the specified filepath lives on.
|
|
OpenStream ( string path, FileMode mode, FileAccess acc, FileShare share, bool sequential, bool useAsync, int blockSize ) : |
public FileBlockWriter ( string path, int blockSizeInBytes ) : System | ||
path | string | full path of the new file. |
blockSizeInBytes | int | size of the blocks in bytes |
Результат | System |
public SetSize ( int blocksCount ) : void | ||
blocksCount | int | Size of the files in number of blocks (size of the file is blockCount * blockSize) |
Результат | void |
public Write ( byte block, bool moveToNextBlock ) : void | ||
block | byte | The block to write to disk |
moveToNextBlock | bool | True to move to the next block, False otherwise. |
Результат | void |