Public Member Functions | Data Fields

Doc Struct Reference

#include <P_CacheVol.h>

Public Member Functions

uint32_t data_len ()
uint32_t prefix_len ()
int single_fragment ()
int no_data_in_fragment ()
char * hdr ()
char * data ()

Data Fields

uint32_t magic
uint32_t len
uint64_t total_len
CryptoHash first_key
 first key in object.
CryptoHash key
 Key for this doc.
uint32_t hlen
 Length of this header.
uint32_t doc_type:8
 Doc type - indicates the format of this structure and its content.
uint32_t v_major:8
 Major version number.
uint32_t v_minor:8
 Minor version number.
uint32_t unused:8
 Unused, forced to zero.
uint32_t sync_serial
uint32_t write_serial
uint32_t pinned
uint32_t checksum

Detailed Description

Definition at line 626 of file P_CacheVol.h.


Member Function Documentation

TS_INLINE char * Doc::data (  ) 
TS_INLINE uint32_t Doc::data_len (  ) 
TS_INLINE char * Doc::hdr (  ) 
int Doc::no_data_in_fragment (  ) 
TS_INLINE uint32_t Doc::prefix_len (  ) 
TS_INLINE int Doc::single_fragment (  ) 

Definition at line 792 of file P_CacheVol.h.

References data_len(), and total_len.

Referenced by agg_copy(), and CacheVC::openReadStartHead().


Field Documentation

uint32_t Doc::checksum

Definition at line 641 of file P_CacheVol.h.

Referenced by agg_copy(), and CacheVC::handleReadDone().

uint32_t Doc::doc_type

Doc type - indicates the format of this structure and its content.

Definition at line 634 of file P_CacheVol.h.

Referenced by agg_copy(), CacheVC::evacuateReadHead(), ShowCache::handleCacheEvent(), CacheVC::handleRead(), CacheVC::handleReadDone(), and CacheVC::scanObject().

CryptoHash Doc::first_key
uint32_t Doc::hlen
CryptoHash Doc::key
uint32_t Doc::len
uint32_t Doc::magic
uint32_t Doc::pinned

Definition at line 640 of file P_CacheVol.h.

Referenced by agg_copy(), and Vol::evacuateDocReadDone().

uint32_t Doc::sync_serial
uint64_t Doc::total_len
uint32_t Doc::unused

Unused, forced to zero.

Definition at line 637 of file P_CacheVol.h.

Referenced by agg_copy().

uint32_t Doc::v_major

Major version number.

Definition at line 635 of file P_CacheVol.h.

Referenced by agg_copy(), and CacheVC::openReadStartHead().

uint32_t Doc::v_minor

Minor version number.

Definition at line 636 of file P_CacheVol.h.

Referenced by agg_copy(), and CacheVC::openReadStartHead().


The documentation for this struct was generated from the following file: