tor  0.4.2.1-alpha-dev
Data Fields
cached_dir_t Struct Reference

#include <cached_dir_st.h>

Data Fields

char * dir
 
char * dir_compressed
 
size_t dir_len
 
size_t dir_compressed_len
 
time_t published
 
common_digests_t digests
 
uint8_t digest_sha3_as_signed [DIGEST256_LEN]
 
int refcnt
 

Detailed Description

A cached_dir_t represents a cacheable directory object, along with its compressed form.

Definition at line 12 of file cached_dir_st.h.

Field Documentation

◆ digest_sha3_as_signed

uint8_t cached_dir_t::digest_sha3_as_signed[DIGEST256_LEN]

Sha3 digest (also ns only)

Definition at line 20 of file cached_dir_st.h.

◆ digests

common_digests_t cached_dir_t::digests

Digests of this object (networkstatus only)

Definition at line 18 of file cached_dir_st.h.

◆ dir

char* cached_dir_t::dir

Contents of this object, NUL-terminated.

Definition at line 13 of file cached_dir_st.h.

Referenced by clear_cached_dir().

◆ dir_compressed

char* cached_dir_t::dir_compressed

Compressed contents of this object.

Definition at line 14 of file cached_dir_st.h.

Referenced by clear_cached_dir().

◆ dir_compressed_len

size_t cached_dir_t::dir_compressed_len

Length of dir_compressed.

Definition at line 16 of file cached_dir_st.h.

Referenced by spooled_resource_estimate_size().

◆ dir_len

size_t cached_dir_t::dir_len

Length of dir (not counting its NUL).

Definition at line 15 of file cached_dir_st.h.

Referenced by spooled_resource_estimate_size().

◆ published

time_t cached_dir_t::published

When was this object published.

Definition at line 17 of file cached_dir_st.h.

Referenced by spooled_resource_lookup_cached_dir().

◆ refcnt

int cached_dir_t::refcnt

Reference count for this cached_dir_t.

Definition at line 21 of file cached_dir_st.h.

Referenced by cached_dir_decref().


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