C# Class MongoDB.Driver.BsonReader

Inheritance: System.IO.BinaryReader
Afficher le fichier Open project: dannycoates/mongo-clr4-driver Class Usage Examples

Méthodes publiques

Méthode Description
BsonReader ( Stream stream ) : System
ReadByte ( ) : byte
ReadDBRef ( ) : DBRef
ReadDate ( ) : System.DateTime
ReadDoc ( ) : Doc
ReadMessageHeader ( ) : MessageHeader
ReadObjectId ( ) : ObjectId
ReadReplyMessage ( ) : ReplyMessage
ReadShortString ( ) : string

Reads a string of unknown length but less than 1024 bytes

In the BSON spec there are two cases where the string length is not given: Element names of objects and regex strings. Since element names are very common, and are most likely short this method WILL FAIL unappologetically for strings longer than 1024 bytes. You have been warned!

ReadString ( int length ) : string

Method Details

BsonReader() public méthode

public BsonReader ( Stream stream ) : System
stream Stream
Résultat System

ReadByte() public méthode

public ReadByte ( ) : byte
Résultat byte

ReadDBRef() public méthode

public ReadDBRef ( ) : DBRef
Résultat DBRef

ReadDate() public méthode

public ReadDate ( ) : System.DateTime
Résultat System.DateTime

ReadDoc() public méthode

public ReadDoc ( ) : Doc
Résultat Doc

ReadMessageHeader() public méthode

public ReadMessageHeader ( ) : MessageHeader
Résultat MessageHeader

ReadObjectId() public méthode

public ReadObjectId ( ) : ObjectId
Résultat MongoDB.Types.ObjectId

ReadReplyMessage() public méthode

public ReadReplyMessage ( ) : ReplyMessage
Résultat ReplyMessage

ReadShortString() public méthode

Reads a string of unknown length but less than 1024 bytes
In the BSON spec there are two cases where the string length is not given: Element names of objects and regex strings. Since element names are very common, and are most likely short this method WILL FAIL unappologetically for strings longer than 1024 bytes. You have been warned!
public ReadShortString ( ) : string
Résultat string

ReadString() public méthode

public ReadString ( int length ) : string
length int
Résultat string