libmongo-client  0.1.8
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   start_offset
 Offset to start reading data from, needed to support the binary subtype. More...
 
         gint32   size
 Size of the current chunk. More...
 
         gint32   offset
 Offset we're into the chunk. More...
 
      }   chunk
 Chunk state information.
 
   }   reader
 Reader-specific data.
 
   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
 Writer-specific data.
 
}; 
 Reader & Writer structure union.
 

Detailed Description

Opaque GridFS file stream object type.

GridFS file stream object.

Field Documentation

§ bson

bson* mongo_sync_gridfs_stream::bson

The current chunk as BSON.

§ buffer

guint8* mongo_sync_gridfs_stream::buffer

The current output buffer.

§ buffer_offset

gint32 mongo_sync_gridfs_stream::buffer_offset

Offset into the output buffer.

§ checksum

GChecksum* mongo_sync_gridfs_stream::checksum

The running checksum of the output file.

§ data

const guint8* mongo_sync_gridfs_stream::data

The current chunk data, pointing into ->reader.bson.

§ file

mongo_sync_gridfs_file_common mongo_sync_gridfs_stream::file

Common file data.

§ gfs

mongo_sync_gridfs* mongo_sync_gridfs_stream::gfs

The GridFS the file is on.

§ metadata

bson* mongo_sync_gridfs_stream::metadata

Copy of the user-supplied metadata.

§ offset

gint32 mongo_sync_gridfs_stream::offset

Offset we're into the chunk.

§ size

gint32 mongo_sync_gridfs_stream::size

Size of the current chunk.

§ start_offset

gint32 mongo_sync_gridfs_stream::start_offset

Offset to start reading data from, needed to support the binary subtype.