CSMongo.Requests.GetMoreRequest.GenerateBody C# (CSharp) Метод

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

Generates the body for this request
protected GenerateBody ( DynamicStream stream ) : void
stream CSMongo.IO.DynamicStream
Результат void
        protected override void GenerateBody(DynamicStream stream)
        {
            //required ZERO byte
            stream.Append(BsonTranslator.AsInt32(0));

            //the name of the collection
            stream.Append(BsonTranslator.AsString(this.Cursor.Query.GetDatabaseTarget()));

            //the total records to select
            stream.Append(BsonTranslator.AsInt32(this.Count));

            //required ZERO byte
            stream.Append(BsonTranslator.AsInt64(this.Cursor.Cursor));
        }