Home
last modified time | relevance | path

Searched refs:tmpbuf (Results 1 – 4 of 4) sorted by relevance

/xnu-11215/tests/
H A Din_cksum_test.c66 …sum(const uint8_t *buf, int nsegs, const uint32_t *seglens, const uint8_t *aligns, uint8_t *tmpbuf) in split_in_cksum() argument
75 memcpy(tmpbuf + aligns[i], buf, seglens[i]); in split_in_cksum()
77 partial = os_cpu_in_cksum(tmpbuf + aligns[i], seglens[i], partial); in split_in_cksum()
91 uint8_t tmpbuf[len + MAXALIGN]; in test_checksum() local
99 uint16_t osum = split_in_cksum(data, 2, seglens, aligns, tmpbuf); in test_checksum()
/xnu-11215/libkern/c++/
H A DOSUnserializeXML.y797 unsigned char *tmpbuf = (unsigned char *)malloc(tmpbuflen); in getCFEncodedData() local
805 safe_free(tmpbuf, tmpbuflen); in getCFEncodedData()
827 tmpbuf = (unsigned char *)realloc(tmpbuf, oldsize, tmpbuflen); in getCFEncodedData()
829 tmpbuf[tmpbufpos++] = (acc >> 16) & 0xff; in getCFEncodedData()
831 tmpbuf[tmpbufpos++] = (acc >> 8) & 0xff; in getCFEncodedData()
834 tmpbuf[tmpbufpos++] = acc & 0xff; in getCFEncodedData()
841 safe_free(tmpbuf, tmpbuflen); in getCFEncodedData()
844 return tmpbuf; in getCFEncodedData()
/xnu-11215/iokit/System/
H A DOSUnserializeXMLSharedImplementation.h2408 unsigned char *tmpbuf = (unsigned char *)malloc(tmpbuflen); in getCFEncodedData() local
2416 safe_free(tmpbuf, tmpbuflen); in getCFEncodedData()
2438 tmpbuf = (unsigned char *)realloc(tmpbuf, oldsize, tmpbuflen); in getCFEncodedData()
2440 tmpbuf[tmpbufpos++] = (acc >> 16) & 0xff; in getCFEncodedData()
2442 tmpbuf[tmpbufpos++] = (acc >> 8) & 0xff; in getCFEncodedData()
2445 tmpbuf[tmpbufpos++] = acc & 0xff; in getCFEncodedData()
2452 safe_free(tmpbuf, tmpbuflen); in getCFEncodedData()
2455 return tmpbuf; in getCFEncodedData()
/xnu-11215/libkern/libkern/c++/
H A DOSUnserializeXMLSharedImplementation.h2408 unsigned char *tmpbuf = (unsigned char *)malloc(tmpbuflen); in getCFEncodedData() local
2416 safe_free(tmpbuf, tmpbuflen); in getCFEncodedData()
2438 tmpbuf = (unsigned char *)realloc(tmpbuf, oldsize, tmpbuflen); in getCFEncodedData()
2440 tmpbuf[tmpbufpos++] = (acc >> 16) & 0xff; in getCFEncodedData()
2442 tmpbuf[tmpbufpos++] = (acc >> 8) & 0xff; in getCFEncodedData()
2445 tmpbuf[tmpbufpos++] = acc & 0xff; in getCFEncodedData()
2452 safe_free(tmpbuf, tmpbuflen); in getCFEncodedData()
2455 return tmpbuf; in getCFEncodedData()