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

Function bencode_decode_expect

modules/rtpengine/bencode.h:489–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489static inline bencode_item_t *bencode_decode_expect(bencode_buffer_t *buf, const char *s, int len, bencode_type_t expect) {
490 bencode_item_t *ret;
491 ret = bencode_decode(buf, s, len);
492 if (!ret || ret->type != expect)
493 return NULL;
494 return ret;
495}
496
497static inline bencode_item_t *bencode_decode_expect_str(bencode_buffer_t *buf, const str *s, bencode_type_t expect) {
498 return bencode_decode_expect(buf, s->s, s->len, expect);

Callers 4

rtpe_function_callFunction · 0.85
rtpe_testFunction · 0.85

Calls 1

bencode_decodeFunction · 0.85

Tested by

no test coverage detected