Lines Matching refs:inLength
116 OSData::initWithBytes(const void *bytes, unsigned int inLength) in initWithBytes() argument
118 if ((inLength && !bytes) || !initWithCapacity(inLength)) { in initWithBytes()
123 bcopy(bytes, data, inLength); in initWithBytes()
125 length = inLength; in initWithBytes()
131 OSData::initWithBytesNoCopy(void *bytes, unsigned int inLength) in initWithBytesNoCopy() argument
137 length = inLength; in initWithBytesNoCopy()
152 unsigned int start, unsigned int inLength) in initWithData() argument
154 const void *localData = inData->getBytesNoCopy(start, inLength); in initWithData()
157 return initWithBytes(localData, inLength); in initWithData()
176 OSData::withBytes(const void *bytes, unsigned int inLength) in withBytes() argument
180 if (me && !me->initWithBytes(bytes, inLength)) { in withBytes()
187 OSData::withBytesNoCopy(void *bytes, unsigned int inLength) in withBytesNoCopy() argument
191 if (me && !me->initWithBytesNoCopy(bytes, inLength)) { in withBytesNoCopy()
212 unsigned int start, unsigned int inLength) in withData() argument
216 if (me && !me->initWithData(inData, start, inLength)) { in withData()
334 OSData::appendBytes(const void *bytes, unsigned int inLength) in appendBytes() argument
338 if (!inLength) { in appendBytes()
346 if (os_add_overflow(length, inLength, &newSize)) { in appendBytes()
355 bcopy(bytes, &((unsigned char *)data)[length], inLength); in appendBytes()
357 bzero(&((unsigned char *)data)[length], inLength); in appendBytes()
366 OSData::appendByte(unsigned char byte, unsigned int inLength) in appendByte() argument
370 if (!inLength) { in appendByte()
378 if (os_add_overflow(length, inLength, &newSize)) { in appendByte()
386 memset(&((unsigned char *)data)[length], byte, inLength); in appendByte()
410 unsigned int inLength) const in getBytesNoCopy()
416 && (start + inLength) >= inLength // overflow check in getBytesNoCopy()
417 && (start + inLength) <= length) { in getBytesNoCopy()
438 OSData::isEqualTo(const void *someData, unsigned int inLength) const in isEqualTo()
440 return (length >= inLength) && (bcmp(data, someData, inLength) == 0); in isEqualTo()