C# Класс MongoDB.Driver.GridFS.MongoGridFSStream

Наследование: Stream
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
AddMissingChunks void
LoadChunk void
LoadChunkNoData void
OpenAppend void
OpenCreate void
OpenExisting void
OpenTruncate void
SaveChunk void
UpdateMetadata void

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Disposes of any resources used by the stream.

Приватные методы

Метод Описание
AddMissingChunks ( ) : void
LoadChunk ( long chunkIndex ) : void
LoadChunkNoData ( long chunkIndex ) : void
OpenAppend ( ) : void
OpenCreate ( ) : void
OpenExisting ( ) : void
OpenTruncate ( ) : void
SaveChunk ( ) : void
UpdateMetadata ( ) : void

Описание методов

Dispose() защищенный Метод

Disposes of any resources used by the stream.
protected Dispose ( bool disposing ) : void
disposing bool True if called from Dispose.
Результат void

Flush() публичный Метод

Flushes any unsaved data in the buffers to the GridFS file.
public Flush ( ) : void
Результат void

MongoGridFSStream() публичный Метод

Initializes a new instance of the MongoGridFSStream class.
public MongoGridFSStream ( MongoDB.Driver.GridFS.MongoGridFSFileInfo fileInfo, FileMode mode ) : System
fileInfo MongoDB.Driver.GridFS.MongoGridFSFileInfo The GridFS file info.
mode FileMode The mode.
Результат System

MongoGridFSStream() публичный Метод

Initializes a new instance of the MongoGridFSStream class.
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.
Результат System

Read() публичный Метод

Reads bytes from the GridFS stream.
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.
Результат int

ReadByte() публичный Метод

Reads one byte from the GridFS stream.
public ReadByte ( ) : int
Результат int

Seek() публичный Метод

Seeks to a new position.
public Seek ( long offset, SeekOrigin origin ) : long
offset long The seek offset.
origin SeekOrigin The seek origin.
Результат long

SetLength() публичный Метод

Sets the length of the GridFS file.
public SetLength ( long value ) : void
value long The length.
Результат void

Write() публичный Метод

Writes bytes to the GridFS stream.
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.
Результат void

WriteByte() публичный Метод

Writes one byte to the GridFS stream.
public WriteByte ( byte value ) : void
value byte The byte.
Результат void