libmongo-client  0.1.6.1
 All Data Structures Functions Variables Enumerations Enumerator Groups Pages
Data Fields
mongo_sync_gridfs_stream Struct Reference

Opaque GridFS file stream object type. More...

#include <libmongo-private.h>

Collaboration diagram for mongo_sync_gridfs_stream:
Collaboration graph
[legend]

Data Fields

mongo_sync_gridfs_file_common file
 Common file data. More...
 
mongo_sync_gridfs * gfs
 The GridFS the file is on. More...
 
union {
   struct {
      bson *   bson
 The current chunk as BSON. More...
 
      struct {
         const guint8 *   data
 
          The current chunk data, pointing

into ->reader.bson. More...

 
         gint32   size
 Size of the current chunk. More...
 
         gint32   offset
 Offset we're into the chunk. More...
 
      }   chunk
 
   }   reader
 
   struct {
      bson *   metadata
 Copy of the user-supplied metadata. More...
 
      guint8 *   buffer
 The current output buffer. More...
 
      gint32   buffer_offset
 Offset into the output buffer. More...
 
      GChecksum *   checksum
 
              The running checksum of the output

file. More...

 
   }   writer
 
}; 
 

Detailed Description

Opaque GridFS file stream object type.

GridFS file stream object.

Field Documentation

bson* mongo_sync_gridfs_stream::bson

The current chunk as BSON.

guint8* mongo_sync_gridfs_stream::buffer

The current output buffer.

gint32 mongo_sync_gridfs_stream::buffer_offset

Offset into the output buffer.

GChecksum* mongo_sync_gridfs_stream::checksum

              The running checksum of the output

file.

const guint8* mongo_sync_gridfs_stream::data

          The current chunk data, pointing

into ->reader.bson.

mongo_sync_gridfs_file_common mongo_sync_gridfs_stream::file

Common file data.

mongo_sync_gridfs* mongo_sync_gridfs_stream::gfs

The GridFS the file is on.

bson* mongo_sync_gridfs_stream::metadata

Copy of the user-supplied metadata.

gint32 mongo_sync_gridfs_stream::offset

Offset we're into the chunk.

gint32 mongo_sync_gridfs_stream::size

Size of the current chunk.