Lines Matching defs:bytes
94 bool OSData::initWithBytes(const void *bytes, unsigned int inLength)
96 if ((inLength && !bytes) || !initWithCapacity(inLength))
99 if (bytes != data)
100 bcopy(bytes, data, inLength);
106 bool OSData::initWithBytesNoCopy(void *bytes, unsigned int inLength)
113 data = bytes;
146 OSData *OSData::withBytes(const void *bytes, unsigned int inLength)
150 if (me && !me->initWithBytes(bytes, inLength)) {
157 OSData *OSData::withBytesNoCopy(void *bytes, unsigned int inLength)
161 if (me && !me->initWithBytesNoCopy(bytes, inLength)) {
250 bool OSData::appendBytes(const void *bytes, unsigned int inLength)
264 if (bytes)
265 bcopy(bytes, &((unsigned char *)data)[length], inLength);
408 /* 3 bytes are encoded as 4 */