Property | Type | Description | |
---|---|---|---|
AddMissingChunks | void | ||
LoadChunk | void | ||
LoadChunkNoData | void | ||
OpenAppend | void | ||
OpenCreate | void | ||
OpenExisting | void | ||
OpenTruncate | void | ||
SaveChunk | void | ||
UpdateMetadata | void |
Method | Description | |
---|---|---|
Flush ( ) : void |
Flushes any unsaved data in the buffers to the GridFS file.
|
|
MongoGridFSStream ( MongoDB.Driver.GridFS.MongoGridFSFileInfo fileInfo, FileMode mode ) : System |
Initializes a new instance of the MongoGridFSStream class.
|
|
MongoGridFSStream ( MongoDB.Driver.GridFS.MongoGridFSFileInfo fileInfo, FileMode mode, FileAccess access ) : System |
Initializes a new instance of the MongoGridFSStream class.
|
|
Read ( byte buffer, int offset, int count ) : int |
Reads bytes from the GridFS stream.
|
|
ReadByte ( ) : int |
Reads one byte from the GridFS stream.
|
|
Seek ( long offset, SeekOrigin origin ) : long |
Seeks to a new position.
|
|
SetLength ( long value ) : void |
Sets the length of the GridFS file.
|
|
Write ( byte buffer, int offset, int count ) : void |
Writes bytes to the GridFS stream.
|
|
WriteByte ( byte value ) : void |
Writes one byte to the GridFS stream.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Disposes of any resources used by the stream.
|
Method | Description | |
---|---|---|
AddMissingChunks ( ) : void | ||
LoadChunk ( long chunkIndex ) : void | ||
LoadChunkNoData ( long chunkIndex ) : void | ||
OpenAppend ( ) : void | ||
OpenCreate ( ) : void | ||
OpenExisting ( ) : void | ||
OpenTruncate ( ) : void | ||
SaveChunk ( ) : void | ||
UpdateMetadata ( ) : void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | True if called from Dispose. |
return | void |
public MongoGridFSStream ( MongoDB.Driver.GridFS.MongoGridFSFileInfo fileInfo, FileMode mode ) : System | ||
fileInfo | MongoDB.Driver.GridFS.MongoGridFSFileInfo | The GridFS file info. |
mode | FileMode | The mode. |
return | System |
public MongoGridFSStream ( MongoDB.Driver.GridFS.MongoGridFSFileInfo fileInfo, FileMode mode, FileAccess access ) : System | ||
fileInfo | MongoDB.Driver.GridFS.MongoGridFSFileInfo | The GridFS file info. |
mode | FileMode | The mode. |
access | FileAccess | The acess. |
return | System |
public Read ( byte buffer, int offset, int count ) : int | ||
buffer | byte | The destination buffer. |
offset | int | The offset in the destination buffer at which to place the read bytes. |
count | int | The number of bytes to read. |
return | int |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | The seek offset. |
origin | SeekOrigin | The seek origin. |
return | long |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | The source buffer. |
offset | int | The offset in the source buffer to the bytes. |
count | int | The number of bytes to write. |
return | void |