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

Function bin_get_content_start

bin_interface.c:558–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558int bin_get_content_start(bin_packet_t *packet, str *buf)
559{
560 unsigned short clen;
561
562 if (!buf)
563 return -1;
564
565 memcpy(&clen, packet->buffer.s + HEADER_SIZE, sizeof(clen));
566 buf->s = packet->buffer.s + HEADER_SIZE + LEN_FIELD_SIZE +
567 clen + sizeof(int);
568 buf->len = packet->buffer.len - (buf->s - packet->buffer.s);
569
570 return buf->len;
571}
572
573int bin_get_content_pos(bin_packet_t *packet, str *buf)
574{

Callers 5

replicate_entity_createFunction · 0.85
replicate_entity_updateFunction · 0.85
replicate_entity_deleteFunction · 0.85
pack_entities_syncFunction · 0.85
b2b_run_cbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected