Lines Matching defs:inLength
88 bool OSData::initWithBytes(const void *bytes, unsigned int inLength)
90 if ((inLength && !bytes) || !initWithCapacity(inLength))
94 bcopy(bytes, data, inLength);
95 length = inLength;
100 bool OSData::initWithBytesNoCopy(void *bytes, unsigned int inLength)
105 length = inLength;
118 unsigned int start, unsigned int inLength)
120 const void *localData = inData->getBytesNoCopy(start, inLength);
123 return initWithBytes(localData, inLength);
140 OSData *OSData::withBytes(const void *bytes, unsigned int inLength)
144 if (me && !me->initWithBytes(bytes, inLength)) {
151 OSData *OSData::withBytesNoCopy(void *bytes, unsigned int inLength)
155 if (me && !me->initWithBytesNoCopy(bytes, inLength)) {
176 unsigned int start, unsigned int inLength)
180 if (me && !me->initWithData(inData, start, inLength)) {
236 bool OSData::appendBytes(const void *bytes, unsigned int inLength)
240 if (!inLength)
246 newSize = length + inLength;
251 bcopy(bytes, &((unsigned char *)data)[length], inLength);
253 bzero(&((unsigned char *)data)[length], inLength);
260 bool OSData::appendByte(unsigned char byte, unsigned int inLength)
264 if (!inLength)
270 newSize = length + inLength;
274 memset(&((unsigned char *)data)[length], byte, inLength);
294 unsigned int inLength) const
300 && (start + inLength) <= length)
317 bool OSData::isEqualTo(const void *someData, unsigned int inLength) const
319 return (length >= inLength) && (bcmp(data, someData, inLength) == 0);