Public Types | Public Member Functions | Data Fields | Static Public Attributes

HTTPCacheAlt Struct Reference

#include <HTTP.h>

Collaboration diagram for HTTPCacheAlt:
Collaboration graph
[legend]

Public Types

typedef uint64_t FragOffset
 Type of offset for a fragment.

Public Member Functions

 HTTPCacheAlt ()
void copy (HTTPCacheAlt *to_copy)
void copy_frag_offsets_from (HTTPCacheAlt *src)
void destroy ()

Data Fields

uint32_t m_magic
int32_t m_writeable
int32_t m_unmarshal_len
int32_t m_id
int32_t m_rid
int32_t m_object_key [4]
int32_t m_object_size [2]
HTTPHdr m_request_hdr
HTTPHdr m_response_hdr
time_t m_request_sent_time
time_t m_response_received_time
int m_frag_offset_count
 # of fragment offsets in this alternate.
FragOffsetm_frag_offsets
 Table of fragment offsets.
FragOffset m_integral_frag_offsets [N_INTEGRAL_FRAG_OFFSETS]
 Integral fragment offset table.
RefCountObjm_ext_buffer

Static Public Attributes

static int const N_INTEGRAL_FRAG_OFFSETS = 4
 # of fragment offsets built in to object.

Detailed Description

Definition at line 1292 of file HTTP.h.


Member Typedef Documentation

typedef uint64_t HTTPCacheAlt::FragOffset

Type of offset for a fragment.

Definition at line 1325 of file HTTP.h.


Constructor & Destructor Documentation

HTTPCacheAlt::HTTPCacheAlt (  ) 

Definition at line 1724 of file HTTP.cc.

References m_object_key, and m_object_size.


Member Function Documentation

void HTTPCacheAlt::copy ( HTTPCacheAlt to_copy  ) 
void HTTPCacheAlt::copy_frag_offsets_from ( HTTPCacheAlt src  ) 
void HTTPCacheAlt::destroy (  ) 

Field Documentation

Definition at line 1344 of file HTTP.h.

Referenced by HTTPInfo::destroy(), HTTPInfo::marshal(), and HTTPInfo::set_buffer_reference().

# of fragment offsets in this alternate.

Note:
This is one less than the number of fragments.

Definition at line 1323 of file HTTP.h.

Referenced by cache_bc::HTTPInfo_v21::copy_and_upgrade_unmarshalled_to_v23(), copy_frag_offsets_from(), destroy(), HTTPInfo::get_frag_offset_count(), HTTPInfo::marshal(), HTTPInfo::marshal_length(), HTTPInfo::push_frag_offset(), and HTTPInfo::unmarshal().

Table of fragment offsets.

Note:
The offsets are forward looking so that frag[0] is the first byte past the end of fragment 0 which is also the first byte of fragment 1. For this reason there is no fragment offset for the last fragment.

Definition at line 1331 of file HTTP.h.

Referenced by cache_bc::HTTPInfo_v21::copy_and_upgrade_unmarshalled_to_v23(), copy_frag_offsets_from(), destroy(), HTTPInfo::get_frag_table(), HTTPInfo::marshal(), HTTPInfo::push_frag_offset(), and HTTPInfo::unmarshal().

Definition at line 1309 of file HTTP.h.

Referenced by copy(), HTTPInfo::id_get(), and HTTPInfo::id_set().

Definition at line 1313 of file HTTP.h.

Referenced by copy(), HTTPCacheAlt(), HTTPInfo::object_size_get(), and HTTPInfo::object_size_set().

Definition at line 1318 of file HTTP.h.

Referenced by copy(), HTTPInfo::request_sent_time_get(), and HTTPInfo::request_sent_time_set().

Definition at line 1310 of file HTTP.h.

Referenced by copy(), HTTPInfo::rid_get(), and HTTPInfo::rid_set().

Definition at line 1307 of file HTTP.h.

Referenced by copy(), HTTPInfo::get_handle(), HTTPInfo::marshal(), and HTTPInfo::unmarshal().

int const HTTPCacheAlt::N_INTEGRAL_FRAG_OFFSETS = 4 [static]

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