MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / bencode_buffer_init

Function bencode_buffer_init

modules/rtpengine/bencode.c:116–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116int bencode_buffer_init(bencode_buffer_t *buf) {
117 buf->pieces = __bencode_piece_new(0);
118 if (!buf->pieces)
119 return -1;
120 buf->free_list = NULL;
121 buf->error = 0;
122 return 0;
123}
124
125static void *__bencode_alloc(bencode_buffer_t *buf, unsigned int size) {
126 struct __bencode_buffer_piece *piece;

Callers 9

rtpe_testFunction · 0.85
rtpengine_play_dtmf_fFunction · 0.85
rtpengine_api_copy_opFunction · 0.85
test_bracket_listsFunction · 0.85
test_bracket_dictsFunction · 0.85
test_bracket_nestedFunction · 0.85
test_bracket_securityFunction · 0.85
test_bracket_escapesFunction · 0.85

Calls 1

__bencode_piece_newFunction · 0.85

Tested by 5

test_bracket_listsFunction · 0.68
test_bracket_dictsFunction · 0.68
test_bracket_nestedFunction · 0.68
test_bracket_securityFunction · 0.68
test_bracket_escapesFunction · 0.68