Метод | Описание | |
---|---|---|
ChangeExtension ( string extension, bool isReadOnly, bool isSharingEnabled ) : void |
Changes the extension of the current file.
|
|
ChangeShareMode ( bool isReadOnly, bool isSharingEnabled ) : void |
Reopens the file with different permissions.
|
|
CommitChanges ( FileHeaderBlock header ) : void |
Occurs when committing the following data to the disk. This will copy any pending data to the disk in a manner that will protect against corruption.
|
|
CreateFile ( |
Creates a DiskMedium from a stream. This will initialize the stream as an empty file structure. This will not check if the file is truely a new file. If calling this with an existing archive file, it will overwrite the table of contents, corrupting the file. |
|
CreateIoSession ( ) : |
Creates a BinaryStreamIoSessionBase that can be used to read from this disk medium.
|
|
CreateMemoryFile ( |
Creates a DiskMedium that is entirely based in memory.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
OpenFile ( |
Creates a DiskMedium from a stream. This will read the existing header from the stream.
|
|
RollbackChanges ( ) : void |
Occurs when rolling back a transaction. This will free up any temporary space allocated for the change.
|
Метод | Описание | |
---|---|---|
DiskMedium ( IDiskMediumCoreFunctions disk, FileHeaderBlock header ) : System |
Class is created through static methods of this class.
|
public ChangeExtension ( string extension, bool isReadOnly, bool isSharingEnabled ) : void | ||
extension | string | the new extension |
isReadOnly | bool | If the file should be reopened as readonly |
isSharingEnabled | bool | If the file should share read privileges. |
Результат | void |
public ChangeShareMode ( bool isReadOnly, bool isSharingEnabled ) : void | ||
isReadOnly | bool | If the file should be reopened as readonly |
isSharingEnabled | bool | If the file should share read privileges. |
Результат | void |
public CommitChanges ( FileHeaderBlock header ) : void | ||
header | FileHeaderBlock | |
Результат | void |
public static CreateFile ( |
||
stream | An open |
|
pool | the |
|
fileStructureBlockSize | int | the block size of the file structure. Usually 4kb. |
Результат |
public CreateIoSession ( ) : |
||
Результат |
public static CreateMemoryFile ( |
||
pool | the |
|
fileStructureBlockSize | int | the block size of the file structure. Usually 4kb. |
Результат |
public static OpenFile ( |
||
stream | An open |
|
pool | The |
|
fileStructureBlockSize | int | the block size of the file structure. Usually 4kb. |
Результат |