Lines Matching refs:numBytes
299 static int _dnsPacket_checkBytes(DnsPacket* packet, int numBytes, const void* bytes) { in _dnsPacket_checkBytes() argument
302 if (p + numBytes > packet->end) return 0; in _dnsPacket_checkBytes()
304 if (memcmp(p, bytes, numBytes) != 0) return 0; in _dnsPacket_checkBytes()
306 packet->cursor = p + numBytes; in _dnsPacket_checkBytes()
437 static unsigned _dnsPacket_hashBytes(DnsPacket* packet, int numBytes, unsigned hash) { in _dnsPacket_hashBytes() argument
441 while (numBytes > 0 && p < end) { in _dnsPacket_hashBytes()
443 numBytes--; in _dnsPacket_hashBytes()
584 static int _dnsPacket_isEqualBytes(DnsPacket* pack1, DnsPacket* pack2, int numBytes) { in _dnsPacket_isEqualBytes() argument
588 if (p1 + numBytes > pack1->end || p2 + numBytes > pack2->end) return 0; in _dnsPacket_isEqualBytes()
590 if (memcmp(p1, p2, numBytes) != 0) return 0; in _dnsPacket_isEqualBytes()
592 pack1->cursor += numBytes; in _dnsPacket_isEqualBytes()
593 pack2->cursor += numBytes; in _dnsPacket_isEqualBytes()