C# 클래스 MongoDB.Driver.GridFS.MongoGridFSStream

상속: Stream
파일 보기 프로젝트 열기: CloudMetal/mongo-csharp-driver

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