charbuf.h File Reference

Expandable character buffer for counted sequences of arbitrary octets. More...

Go to the source code of this file.

Data Structures

struct  ccn_charbuf

Defines

#define CCN_DATETIME_PRECISION_USEC   6
#define CCN_DATETIME_PRECISION_MAX   6

Functions

struct ccn_charbufccn_charbuf_create (void)
struct ccn_charbufccn_charbuf_create_n (size_t n)
void ccn_charbuf_destroy (struct ccn_charbuf **cbp)
unsigned char * ccn_charbuf_reserve (struct ccn_charbuf *c, size_t n)
void ccn_charbuf_reset (struct ccn_charbuf *c)
int ccn_charbuf_append (struct ccn_charbuf *c, const void *p, size_t n)
int ccn_charbuf_append_value (struct ccn_charbuf *c, unsigned val, unsigned n)
int ccn_charbuf_append_charbuf (struct ccn_charbuf *c, const struct ccn_charbuf *i)
int ccn_charbuf_append_string (struct ccn_charbuf *c, const char *s)
int ccn_charbuf_putf (struct ccn_charbuf *c, const char *fmt,...)
int ccn_charbuf_append_datetime (struct ccn_charbuf *c, time_t secs, int nsecs)
int ccn_charbuf_append_datetime_now (struct ccn_charbuf *c, int precision)
char * ccn_charbuf_as_string (struct ccn_charbuf *c)


Detailed Description

Expandable character buffer for counted sequences of arbitrary octets.

Part of the CCNx C Library.

Copyright (C) 2008, 2009 Palo Alto Research Center, Inc.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Definition in file charbuf.h.


Define Documentation

#define CCN_DATETIME_PRECISION_MAX   6

Definition at line 108 of file charbuf.h.

#define CCN_DATETIME_PRECISION_USEC   6

Definition at line 107 of file charbuf.h.


Function Documentation

int ccn_charbuf_append ( struct ccn_charbuf c,
const void *  p,
size_t  n 
)

Definition at line 108 of file ccn_charbuf.c.

Referenced by answer_passive(), append_bf_all(), append_future_vcomp(), ccn_append_link_name(), ccn_append_uri_component(), ccn_btree_key_append(), ccn_charbuf_append_charbuf(), ccn_charbuf_append_closer(), ccn_charbuf_append_datetime(), ccn_charbuf_append_string(), ccn_charbuf_append_tt(), ccn_charbuf_duplicate(), ccn_chk_signing_params(), ccn_construct_interest(), ccn_decoder_decode(), ccn_encode_Signature(), ccn_face_instance_parse(), ccn_flatname_append_component(), ccn_forwarding_entry_parse(), ccn_get_public_key(), ccn_header_parse(), ccn_initiate_key_fetch(), ccn_load_private_key(), ccn_name_append(), ccn_name_append_components(), ccn_name_next_sibling(), ccn_parse_tagged_string(), ccn_put(), ccn_resolve_version(), ccn_seqw_create(), ccn_seqw_write(), ccn_sign_content(), ccn_signed_info_create(), ccn_stuff_interest(), ccn_uri_append(), ccn_uri_append_percentescaped(), ccnb_append_forwarding_entry(), ccnb_append_tagged_blob(), ccnd_answer_req(), ccnd_send(), ccnr_answer_req(), ccnr_init_repo_keystore(), do_character_data(), example_btree_small(), express_bulkdata_interest(), express_my_interest(), find_first_match_candidate(), formatStats(), handle_ccndid_response(), handle_simple_incoming_content(), incoming_content(), load_policy(), local_scope(), main(), make_template(), prefix_face_list_item_create(), process_incoming_content(), propagate_interest(), r_io_record_fd(), r_io_send(), r_link_stuff_and_send(), r_proto_bulk_import(), r_proto_initiate_key_fetch(), r_proto_policy_update(), r_proto_start_write(), r_proto_start_write_checked(), r_store_content_read(), r_store_find_first_match_candidate(), r_sync_enumerate(), r_sync_lookup(), resolve_templ(), sequenced_name(), seqw_next_cob(), stuff_and_send(), stuff_link_check(), SyncHashEnter(), SyncInterestArrived(), SyncLongHashToBuf(), test_btree_chknode(), test_btree_compare(), test_btree_key_fetch(), test_btree_searchnode(), and test_flatname().

int ccn_charbuf_append_charbuf ( struct ccn_charbuf c,
const struct ccn_charbuf i 
)

int ccn_charbuf_append_datetime ( struct ccn_charbuf c,
time_t  secs,
int  nsecs 
)

Definition at line 178 of file ccn_charbuf.c.

int ccn_charbuf_append_datetime_now ( struct ccn_charbuf c,
int  precision 
)

int ccn_charbuf_append_string ( struct ccn_charbuf c,
const char *  s 
)

int ccn_charbuf_append_value ( struct ccn_charbuf c,
unsigned  val,
unsigned  n 
)

char* ccn_charbuf_as_string ( struct ccn_charbuf c  ) 

struct ccn_charbuf* ccn_charbuf_create ( void   )  [read]

Definition at line 28 of file ccn_charbuf.c.

Referenced by age_forwarding(), appendName(), bts_open(), ccn_btree_check(), ccn_btree_getnode(), ccn_btree_io_from_directory(), ccn_btree_next_leaf(), ccn_btree_split(), ccn_charbuf_duplicate(), ccn_chk_signing_params(), ccn_create(), ccn_decoder_create(), ccn_decoder_decode(), ccn_encode_ContentObject(), ccn_encoder_create(), ccn_extend_dict(), ccn_face_instance_parse(), ccn_fetch_open(), ccn_forwarding_entry_parse(), ccn_get_header(), ccn_header_parse(), ccn_initiate_ccndid_fetch(), ccn_initiate_key_fetch(), ccn_initiate_prefix_reg(), ccn_load_default_key(), ccn_load_private_key(), ccn_name_from_uri(), ccn_name_next_sibling(), ccn_process_input(), ccn_put(), ccn_resolve_version(), ccn_seqw_create(), ccn_sign_content(), ccn_uri_append_flatname(), ccnbx(), ccnd_answer_req(), ccnd_debug_ccnb(), ccnd_init_internal_keystore(), ccnd_init_service_ccnb(), ccnd_listen_on(), ccnd_msg(), ccnd_parse_uri_list(), ccnd_reg_ccnx_ccndid(), ccnd_reg_prefix(), ccnd_reg_uri(), ccnd_send(), ccnd_start_notice(), ccnd_stats_http_set_debug(), ccnd_uri_listen(), ccnr_answer_req(), ccnr_debug_ccnb(), ccnr_debug_content(), ccnr_init_policy_cob(), ccnr_init_policy_link_cob(), ccnr_init_repo_keystore(), ccnr_init_service_ccnb(), ccnr_msg(), ccnr_parsed_policy_create(), ccnr_stats_http_set_debug(), ccnr_uri_listen(), charbuf_obtain(), collect_faces_html(), collect_faces_xml(), collect_forwarding_html(), collect_forwarding_xml(), collect_stats_html(), collect_stats_xml(), CompareAction(), constructCommandPrefix(), copyFilter(), create_face(), create_passive_templ(), encode_message(), exclusionsFromHashList(), existingRootOp(), express_bulkdata_interest(), express_my_interest(), fetchStablePoint(), find_first_match_candidate(), get_ccndid(), getFile(), handle_ccndid_response(), handle_key(), incoming_content(), incoming_interest(), init_all_chars_percent_encoded(), initialize_global_data(), load_policy(), local_scope_rm_template(), localStore(), main(), make_connection(), make_data_template(), make_template(), merge_files(), newDefaultRoot(), NewElem(), next_child_at_level(), noteErr(), parseAndAccumName(), pe_next_usec(), post_face_notice(), prefix_face_list_item_create(), printTree(), process_command_tokens(), process_fd(), process_incoming_content(), process_input(), process_prefix_face_list_item(), putFile(), r_dispatch_process_input(), r_init_parse_config(), r_init_read_config(), r_io_open_repo_data_file(), r_io_record_fd(), r_io_send(), r_match_match_interests(), r_net_listen_on(), r_proto_append_repo_info(), r_proto_begin_enumeration(), r_proto_bulk_import(), r_proto_continue_enumeration(), r_proto_expect_content(), r_proto_initiate_key_fetch(), r_proto_mktemplate(), r_proto_policy_complete(), r_proto_policy_update(), r_proto_start_write(), r_proto_start_write_checked(), r_proto_uri_listen(), r_store_content_matches_interest_prefix(), r_store_content_read(), r_store_find_first_match_candidate(), r_store_init(), r_store_look(), r_store_lookup(), r_store_lookup_ccnb(), r_store_next_child_at_level(), r_store_read_stable_point(), r_store_set_flatname(), r_store_write_stable_point(), r_sync_enumerate(), r_sync_enumerate_action(), r_util_charbuf_obtain(), register_unregister_prefix(), resolve_templ(), sendSlice(), sequenced_name(), seqw_next_cob(), storeHandler(), storeStablePoint(), stuff_link_check(), SyncAddRoot(), SyncAppendRandomName(), SyncCacheEntryFetch(), SyncCopyName(), SyncExtractName(), SyncGenInterest(), SyncHandleSlice(), SyncHashEnter(), SyncInterestArrived(), SyncLongHashToBuf(), SyncNameAccumCanon(), SyncNameForIndexbuf(), SyncNameForLocalNode(), SyncNewBase(), SyncNodeMaintainMinMax(), SyncResetComposite(), SyncRootLookupName(), SyncSendRootAdviseInterest(), SyncSignBuf(), SyncStartCompareAction(), SyncStartContentFetch(), SyncStartNodeFetch(), SyncTreeGenerateNames(), SyncUriForName(), test_btree_chknode(), test_btree_compare(), test_btree_inserts_from_stdin(), test_btree_io(), test_btree_key_fetch(), test_btree_searchnode(), test_directory_creation(), test_flatname(), test_insert_content(), testEncodeDecode(), testGenComposite(), testhelp_count_matches(), testReader(), testRootBasic(), testRootCoding(), testRootLookup(), and UpdateAction().

struct ccn_charbuf* ccn_charbuf_create_n ( size_t  n  )  [read]

Definition at line 36 of file ccn_charbuf.c.

void ccn_charbuf_destroy ( struct ccn_charbuf **  cbp  ) 

Definition at line 56 of file ccn_charbuf.c.

Referenced by age_forwarding(), appendName(), ask_more(), bts_destroy(), bts_open(), ccn_btree_check(), ccn_btree_io_from_directory(), ccn_btree_next_leaf(), ccn_btree_split(), ccn_check_pub_arrival(), ccn_chk_signing_params(), ccn_decoder_decode(), ccn_decoder_destroy(), ccn_destroy(), ccn_destroy_interest(), ccn_disconnect(), ccn_encode_ContentObject(), ccn_encoder_destroy(), ccn_extend_dict(), ccn_face_instance_destroy(), ccn_face_instance_parse(), ccn_fetch_close(), ccn_fetch_open(), ccn_forwarding_entry_destroy(), ccn_forwarding_entry_parse(), ccn_get_header(), ccn_header_destroy(), ccn_initiate_ccndid_fetch(), ccn_initiate_key_fetch(), ccn_initiate_prefix_reg(), ccn_load_default_key(), ccn_load_private_key(), ccn_name_from_uri(), ccn_name_next_sibling(), ccn_resolve_version(), ccn_seqw_create(), ccn_seqw_write(), ccn_sign_content(), ccn_uri_append_flatname(), ccnbx(), ccnd_answer_req(), ccnd_debug_ccnb(), ccnd_destroy(), ccnd_init_internal_keystore(), ccnd_init_service_ccnb(), ccnd_internal_client_stop(), ccnd_listen_on(), ccnd_msg(), ccnd_parse_uri_list(), ccnd_reg_ccnx_ccndid(), ccnd_reg_prefix(), ccnd_reg_uri(), ccnd_start_notice(), ccnd_stats_handle_http_connection(), ccnd_stats_http_set_debug(), ccnd_uri_listen(), ccnr_answer_req(), ccnr_debug_ccnb(), ccnr_debug_content(), ccnr_direct_client_stop(), ccnr_init_policy_cob(), ccnr_init_policy_link_cob(), ccnr_init_repo_keystore(), ccnr_init_service_ccnb(), ccnr_internal_client_stop(), ccnr_msg(), ccnr_parsed_policy_destroy(), ccnr_stats_handle_http_connection(), ccnr_stats_http_set_debug(), ccnr_uri_listen(), charbuf_release(), cleanup_se(), collect_faces_html(), collect_faces_xml(), collect_forwarding_html(), collect_forwarding_xml(), CompareAction(), constructCommandPrefix(), create_face(), destroyActionData(), destroyCompareData(), do_deferred_write(), encode_message(), existingRootOp(), express_bulkdata_interest(), express_my_interest(), fetchStablePoint(), fill_holes(), finalize_node(), find_first_match_candidate(), get_ccndid(), getFile(), handle_key(), handle_send_error(), incoming_content(), init_all_chars_percent_encoded(), load_policy(), localFreeEntry(), localStore(), main(), MakeNodeFromNames(), merge_files(), NeedSegment(), newDefaultRoot(), NewElem(), next_child_at_level(), noteErr(), parseAndAccumName(), pe_next_usec(), post_face_notice(), prefix_face_list_destroy(), prefix_face_list_item_create(), printTree(), process_fd(), process_internal_client_buffer(), process_prefix_face_list_item(), putFile(), r_dispatch_process_internal_client_buffer(), r_init_create(), r_init_destroy(), r_init_parse_config(), r_init_read_config(), r_io_open_repo_data_file(), r_io_record_fd(), r_io_shutdown_client_fd(), r_link_do_deferred_write(), r_match_match_interests(), r_net_listen_on(), r_proto_answer_req(), r_proto_append_repo_info(), r_proto_begin_enumeration(), r_proto_bulk_import(), r_proto_continue_enumeration(), r_proto_expect_content(), r_proto_initiate_key_fetch(), r_proto_policy_update(), r_proto_start_write(), r_proto_start_write_checked(), r_proto_uri_listen(), r_store_content_matches_interest_prefix(), r_store_content_read(), r_store_content_trim(), r_store_find_first_match_candidate(), r_store_forget_content(), r_store_init(), r_store_lookup(), r_store_lookup_ccnb(), r_store_next_child_at_level(), r_store_read_stable_point(), r_store_set_flatname(), r_store_write_stable_point(), r_sync_enumerate(), r_sync_enumerate_action(), r_util_charbuf_release(), reap_enumerations(), register_unregister_prefix(), resolve_templ(), sendSlice(), sequenced_name(), seqw_incoming_interest(), seqw_next_cob(), shutdown_client_fd(), sortNames(), storeHandler(), storeStablePoint(), stuff_link_check(), SyncAppendRandomName(), SyncCacheEntryFetch(), SyncCacheEntryStore(), SyncExtractName(), SyncFreeBase(), SyncFreeComposite(), SyncFreeNameAccumAndNames(), SyncGenInterest(), SyncHandleSlice(), SyncInterestArrived(), SyncLocalRepoFetch(), SyncLocalRepoStore(), SyncNameForIndexbuf(), SyncNameForLocalNode(), SyncNoteUri(), SyncNoteUriBase(), SyncNotifyContent(), SyncRegisterInterests(), SyncRemRoot(), SyncResetComposite(), SyncRootAdviseResponse(), SyncRootDecodeAndAdd(), SyncRootLookupName(), SyncSendRootAdviseInterest(), SyncSignBuf(), SyncStartContentFetch(), SyncStartHeartbeat(), SyncStartNodeFetch(), SyncStartSliceEnum(), SyncTreeGenerateNames(), test_btree_chknode(), test_btree_compare(), test_btree_io(), test_btree_key_fetch(), test_btree_searchnode(), test_directory_creation(), test_flatname(), test_insert_content(), testEncodeDecode(), testGenComposite(), testhelp_count_matches(), testReadBuilder(), testReader(), testRootBasic(), testRootCoding(), and UpdateAction().

int ccn_charbuf_putf ( struct ccn_charbuf c,
const char *  fmt,
  ... 
)

unsigned char* ccn_charbuf_reserve ( struct ccn_charbuf c,
size_t  n 
)

void ccn_charbuf_reset ( struct ccn_charbuf c  ) 


Generated on Thu Feb 16 00:44:14 2012 for Content-Centric Networking in C by  doxygen 1.5.6