Lines Matching refs:numBytes
318 static int _dnsPacket_checkBytes(DnsPacket* packet, int numBytes, const void* bytes) { in _dnsPacket_checkBytes() argument
321 if (p + numBytes > packet->end) return 0; in _dnsPacket_checkBytes()
323 if (memcmp(p, bytes, numBytes) != 0) return 0; in _dnsPacket_checkBytes()
325 packet->cursor = p + numBytes; in _dnsPacket_checkBytes()
456 static unsigned _dnsPacket_hashBytes(DnsPacket* packet, int numBytes, unsigned hash) { in _dnsPacket_hashBytes() argument
460 while (numBytes > 0 && p < end) { in _dnsPacket_hashBytes()
462 numBytes--; in _dnsPacket_hashBytes()
602 static int _dnsPacket_isEqualBytes(DnsPacket* pack1, DnsPacket* pack2, int numBytes) { in _dnsPacket_isEqualBytes() argument
606 if (p1 + numBytes > pack1->end || p2 + numBytes > pack2->end) return 0; in _dnsPacket_isEqualBytes()
608 if (memcmp(p1, p2, numBytes) != 0) return 0; in _dnsPacket_isEqualBytes()
610 pack1->cursor += numBytes; in _dnsPacket_isEqualBytes()
611 pack2->cursor += numBytes; in _dnsPacket_isEqualBytes()