Lines Matching refs:numBytes
450 static int _dnsPacket_checkBytes(DnsPacket* packet, int numBytes, const void* bytes) { in _dnsPacket_checkBytes() argument
453 if (p + numBytes > packet->end) return 0; in _dnsPacket_checkBytes()
455 if (memcmp(p, bytes, numBytes) != 0) return 0; in _dnsPacket_checkBytes()
457 packet->cursor = p + numBytes; in _dnsPacket_checkBytes()
681 static unsigned _dnsPacket_hashBytes(DnsPacket* packet, int numBytes, unsigned hash) { in _dnsPacket_hashBytes() argument
685 while (numBytes > 0 && p < end) { in _dnsPacket_hashBytes()
827 static int _dnsPacket_isEqualBytes(DnsPacket* pack1, DnsPacket* pack2, int numBytes) { in _dnsPacket_isEqualBytes() argument
831 if (p1 + numBytes > pack1->end || p2 + numBytes > pack2->end) return 0; in _dnsPacket_isEqualBytes()
833 if (memcmp(p1, p2, numBytes) != 0) return 0; in _dnsPacket_isEqualBytes()
835 pack1->cursor += numBytes; in _dnsPacket_isEqualBytes()
836 pack2->cursor += numBytes; in _dnsPacket_isEqualBytes()