Method | Description | |
---|---|---|
CachedFileStream ( string path, FileMode mode ) : System |
Initializes a new instance of the T:System.IO.FileStream class with the specified path, creation mode, read/write and sharing permission, the access other FileStreams can have to the same file, the buffer size, and additional file options.
|
|
CachedFileStream ( string path, FileMode mode, FileAccess access ) : System |
Initializes a new instance of the T:System.IO.FileStream class with the specified path, creation mode, read/write and sharing permission, the access other FileStreams can have to the same file, the buffer size, and additional file options.
|
|
CachedFileStream ( string path, FileMode mode, FileAccess access, FileShare share ) : System |
Initializes a new instance of the T:System.IO.FileStream class with the specified path, creation mode, read/write and sharing permission, the access other FileStreams can have to the same file, the buffer size, and additional file options.
|
|
CachedFileStream ( string path, FileMode mode, FileAccess access, FileShare share, int blockSize ) : System |
Initializes a new instance of the T:System.IO.FileStream class with the specified path, creation mode, read/write and sharing permission, the access other FileStreams can have to the same file, the buffer size, and additional file options.
|
|
CachedFileStream ( string path, FileMode mode, FileAccess access, FileShare share, int blockSize, FileOptions options ) : System |
Initializes a new instance of the T:System.IO.FileStream class with the specified path, creation mode, read/write and sharing permission, the access other FileStreams can have to the same file, the buffer size, and additional file options.
|
|
CachedFileStream ( string path, FileMode mode, FileAccess access, FileShare share, int blockSize, bool useAsync ) : System |
Initializes a new instance of the T:System.IO.FileStream class with the specified path, creation mode, read/write and sharing permission, the access other FileStreams can have to the same file, the buffer size, and additional file options.
|
|
CachedFileStream ( string path, FileMode mode, FileSystemRights rights, FileShare share, int blockSize, FileOptions options ) : System |
Initializes a new instance of the T:System.IO.FileStream class with the specified path, creation mode, access rights and sharing permission, the buffer size, and additional file options.
|
|
CachedFileStream ( string path, FileMode mode, FileSystemRights rights, FileShare share, int blockSize, FileOptions options, FileSecurity fileSecurity ) : System |
Initializes a new instance of the T:System.IO.FileStream class with the specified path, creation mode, access rights and sharing permission, the buffer size, additional file options, access control and audit security.
|
|
Flush ( ) : void |
Clears buffers for this stream and causes any buffered data to be written to the file.
|
|
Flush ( bool flushToDisk ) : void |
Clears buffers for this stream and causes any buffered data to be written to the file, and also clears all intermediate file buffers.
|
|
Read ( byte buffer, int offset, int count ) : int |
When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
|
|
Seek ( long offset, SeekOrigin origin ) : long |
When overridden in a derived class, sets the position within the current stream.
|
|
SetLength ( long value ) : void |
When overridden in a derived class, sets the length of the current stream.
|
|
Write ( byte buffer, int offset, int count ) : void |
When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the T:System.IO.Stream and optionally releases the managed resources.
|
Method | Description | |
---|---|---|
AddRef ( Block block ) : void | ||
CachedFileStream ( int blockSize ) : System | ||
CleanQueue ( ) : void | ||
GetBlock ( long blockIndex ) : Block | ||
PurgeCache ( long cacheSize ) : void | ||
RemoveRef ( Block block ) : void | ||
WriteToFileStream ( Block block ) : void |
public CachedFileStream ( string path, FileMode mode ) : System | ||
path | string | A relative or absolute path for the file that the current FileStream object will encapsulate. |
mode | FileMode | A constant that determines how to open or create the file. |
return | System |
public CachedFileStream ( string path, FileMode mode, FileAccess access ) : System | ||
path | string | A relative or absolute path for the file that the current FileStream object will encapsulate. |
mode | FileMode | A constant that determines how to open or create the file. |
access | FileAccess | A constant that determines how the file can be accessed by the FileStream object. This gets the |
return | System |
public CachedFileStream ( string path, FileMode mode, FileAccess access, FileShare share ) : System | ||
path | string | A relative or absolute path for the file that the current FileStream object will encapsulate. |
mode | FileMode | A constant that determines how to open or create the file. |
access | FileAccess | A constant that determines how the file can be accessed by the FileStream object. This gets the |
share | FileShare | A constant that determines how the file will be shared by processes. |
return | System |
public CachedFileStream ( string path, FileMode mode, FileAccess access, FileShare share, int blockSize ) : System | ||
path | string | A relative or absolute path for the file that the current FileStream object will encapsulate. |
mode | FileMode | A constant that determines how to open or create the file. |
access | FileAccess | A constant that determines how the file can be accessed by the FileStream object. This gets the |
share | FileShare | A constant that determines how the file will be shared by processes. |
blockSize | int | A positive |
return | System |
public CachedFileStream ( string path, FileMode mode, FileAccess access, FileShare share, int blockSize, FileOptions options ) : System | ||
path | string | A relative or absolute path for the file that the current FileStream object will encapsulate. |
mode | FileMode | A constant that determines how to open or create the file. |
access | FileAccess | A constant that determines how the file can be accessed by the FileStream object. This gets the |
share | FileShare | A constant that determines how the file will be shared by processes. |
blockSize | int | A positive |
options | FileOptions | A value that specifies additional file options. |
return | System |
public CachedFileStream ( string path, FileMode mode, FileAccess access, FileShare share, int blockSize, bool useAsync ) : System | ||
path | string | A relative or absolute path for the file that the current FileStream object will encapsulate. |
mode | FileMode | A constant that determines how to open or create the file. |
access | FileAccess | A constant that determines how the file can be accessed by the FileStream object. This gets the |
share | FileShare | A constant that determines how the file will be shared by processes. |
blockSize | int | A positive |
useAsync | bool | Specifies whether to use asynchronous I/O or synchronous I/O. However, note that the underlying operating system might not support asynchronous I/O, so when specifying true, the handle might be opened synchronously depending on the platform. When opened asynchronously, the |
return | System |
public CachedFileStream ( string path, FileMode mode, FileSystemRights rights, FileShare share, int blockSize, FileOptions options ) : System | ||
path | string | A relative or absolute path for the file that the current |
mode | FileMode | A constant that determines how to open or create the file. |
rights | FileSystemRights | A constant that determines the access rights to use when creating access and audit rules for the file. |
share | FileShare | A constant that determines how the file will be shared by processes. |
blockSize | int | A positive |
options | FileOptions | A constant that specifies additional file options. |
return | System |
public CachedFileStream ( string path, FileMode mode, FileSystemRights rights, FileShare share, int blockSize, FileOptions options, FileSecurity fileSecurity ) : System | ||
path | string | A relative or absolute path for the file that the current |
mode | FileMode | A constant that determines how to open or create the file. |
rights | FileSystemRights | A constant that determines the access rights to use when creating access and audit rules for the file. |
share | FileShare | A constant that determines how the file will be shared by processes. |
blockSize | int | A positive |
options | FileOptions | A constant that specifies additional file options. |
fileSecurity | FileSecurity | A constant that determines the access control and audit security for the file. |
return | System |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
return | void |
public Flush ( bool flushToDisk ) : void | ||
flushToDisk | bool | true to flush all intermediate file buffers; otherwise, false. |
return | void |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | An array of bytes. When this method returns, the buffer contains the specified byte array with the values between |
offset | int | The zero-based byte offset in |
count | int | The maximum number of bytes to be read from the current stream. |
return | int |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | A byte offset relative to the |
origin | SeekOrigin | A value of type |
return | long |
public SetLength ( long value ) : void | ||
value | long | The desired length of the current stream in bytes. |
return | void |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | An array of bytes. This method copies |
offset | int | The zero-based byte offset in |
count | int | The number of bytes to be written to the current stream. |
return | void |