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

Function bencode_string_len_dup

modules/rtpengine/bencode.c:246–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246bencode_item_t *bencode_string_len_dup(bencode_buffer_t *buf, const char *s, int len) {
247 char *sd = __bencode_alloc(buf, len);
248 if (!sd)
249 return NULL;
250 memcpy(sd, s, len);
251 return bencode_string_len(buf, sd, len);
252}
253
254bencode_item_t *bencode_string_len(bencode_buffer_t *buf, const char *s, int len) {
255 return __bencode_string_alloc(buf, s, len, len, 1, BENCODE_STRING);

Callers 3

bracket_string_unescapeFunction · 0.85
bencode_string_dupFunction · 0.85
bencode_str_dupFunction · 0.85

Calls 2

__bencode_allocFunction · 0.85
bencode_string_lenFunction · 0.85

Tested by

no test coverage detected