Searched refs:dataSize (Results 1 - 25 of 136) sorted by relevance

123456

/macosx-10.10/IOHIDFamily-606.1.7/IOHIDFamily/
H A DIOHIDEventSystemQueue.cpp31 Boolean IOHIDEventSystemQueue::enqueue(void *data, UInt32 dataSize) argument
37 result = super::enqueue(data, dataSize);
H A DIOHIDEventServiceQueue.cpp67 IOByteCount dataSize = event->getLength(); local
70 const UInt32 entrySize = dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE;
82 entry->size = dataSize;
83 event->readBytes(&entry->data, dataSize);
97 dataQueue->queue->size = dataSize;
105 ((IODataQueueEntry *)((UInt8 *)dataQueue->queue + tail))->size = dataSize;
108 event->readBytes(&dataQueue->queue->data, dataSize);
128 entry->size = dataSize;
129 event->readBytes(&entry->data, dataSize);
H A DIOHIDEventSystemQueue.h41 virtual Boolean enqueue(void *data, UInt32 dataSize);
/macosx-10.10/IOKitUser-1050.1.21/
H A DIODataQueueClientPrivate.h33 typedef uint32_t (*IODataQueueClientEnqueueReadBytesCallback)(void * refcon, void *data, uint32_t dataSize);
36 _IODataQueueEnqueueWithReadCallback(IODataQueueMemory *dataQueue, uint32_t dataSize, IODataQueueClientEnqueueReadBytesCallback callback, void * refcon);
H A DIODataQueueClient.c73 IODataQueueDequeue(IODataQueueMemory *dataQueue, void *data, uint32_t *dataSize) argument
108 if (dataSize) {
109 if (entrySize <= *dataSize) {
123 // ensure that dataSize is always updated.
124 if (dataSize) {
125 *dataSize = entrySize;
138 __IODataQueueEnqueue(IODataQueueMemory *dataQueue, uint32_t dataSize, void *data, IODataQueueClientEnqueueReadBytesCallback callback, void * refcon) argument
143 UInt32 entrySize = dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE;
155 memcpy(&(entry->data), data, dataSize);
157 (*callback)(refcon, &(entry->data), dataSize);
247 IODataQueueEnqueue(IODataQueueMemory *dataQueue, void *data, uint32_t dataSize) argument
254 _IODataQueueEnqueueWithReadCallback(IODataQueueMemory *dataQueue, uint32_t dataSize, IODataQueueClientEnqueueReadBytesCallback callback, void * refcon) argument
[all...]
H A DIODataQueueClient.h56 * @discussion This function will dequeue the next available entry on the queue. If a data pointer is provided, it will copy the data into the memory region if there is enough space available as specified in the dataSize parameter. If no data pointer is provided, it will simply move the head value past the current entry.
59 * @param dataSize A pointer to the size of the data parameter. On return, this contains the size of the actual entry data - even if the original size was not large enough.
60 * @result Returns kIOReturnSuccess on success. Other return values possible are: kIOReturnUnderrun - queue is empty, kIOReturnBadArgument - no dataQueue or no dataSize, kIOReturnNoSpace - dataSize is too small for entry.
62 IOReturn IODataQueueDequeue(IODataQueueMemory *dataQueue, void *data, uint32_t *dataSize);
85 * @discussion This method adds a new data entry of dataSize to the queue. It sets the size parameter of the entry pointed to by the tail value and copies the memory pointed to by the data parameter in place in the queue. Once that is done, it moves the tail to the next available location. When attempting to add a new entry towards the end of the queue and there isn't enough space at the end, it wraps back to the beginning.<br> If the queue is empty when a new entry is added, the port specified in IODataQueueSetNotificationPort will be used to send a message to the client process that data is now available. <br> <b>Please note that using this method without mapped memory create from an IOSharedDataQueue will result in undefined behavior. </b>
88 * @param dataSize Size of the data pointed to by data.
91 IOReturn IODataQueueEnqueue(IODataQueueMemory *dataQueue, void *data, uint32_t dataSize) AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER;
/macosx-10.10/WebCore-7600.1.25/html/
H A DImageData.cpp46 Checked<int, RecordOverflow> dataSize = 4; local
47 dataSize *= sw;
48 dataSize *= sh;
49 if (dataSize.hasOverflowed()) {
62 Checked<int, RecordOverflow> dataSize = 4; local
63 dataSize *= size.width();
64 dataSize *= size.height();
65 if (dataSize.hasOverflowed())
73 Checked<int, RecordOverflow> dataSize = 4; local
74 dataSize *
[all...]
/macosx-10.10/WebCore-7600.1.25/platform/network/
H A DMIMESniffing.cpp154 static inline void skipWhiteSpace(const char* data, size_t& pos, size_t dataSize) argument
156 while (pos < dataSize && isWhiteSpace(data[pos]))
256 static inline bool maskedCompare(const MagicNumbers& info, const char* data, size_t dataSize) argument
258 if (dataSize < info.size)
295 static inline bool compare(const MagicNumbers& info, const char* data, size_t dataSize) argument
299 skipWhiteSpace(data, pos, dataSize);
301 dataSize -= pos;
308 result = dataSize >= info.size && !memcmp(data, info.pattern, info.size);
313 static inline const char* findMIMEType(const char* data, size_t dataSize, const MagicNumbers* types, size_t typesCount) argument
316 if (compare(types[i], data, dataSize))
322 findSimpleMIMEType(const char* data, size_t dataSize, const MagicNumbers* types, size_t typesCount) argument
344 internalTextOrBinaryTypeSniffingProcedure(const char* data, size_t dataSize) argument
366 textOrBinaryTypeSniffingProcedure(const char* data, size_t dataSize) argument
374 unknownTypeSniffingProcedure(const char* data, size_t dataSize) argument
401 imageTypeSniffingProcedure(const char* data, size_t dataSize) argument
406 checkText(const char* data, size_t& pos, size_t dataSize, const char* text, size_t textSize) argument
418 checkRDF(const char* data, size_t pos, size_t dataSize) argument
443 skipTag(const char*& data, size_t& pos, size_t dataSize, const char* tag, size_t tagSize, const char* tagEnd, size_t tagEndSize) argument
455 feedTypeSniffingProcedure(const char* data, size_t dataSize) argument
510 static const size_t dataSize = dataSizeNeededForImageSniffing(); local
[all...]
H A DMIMESniffing.h31 size_t dataSize() const { return m_dataSize; } function in class:MIMESniffer
/macosx-10.10/xnu-2782.1.97/iokit/Kernel/
H A DIODataQueue.cpp149 Boolean IODataQueue::enqueue(void * data, UInt32 dataSize) argument
153 const UInt32 entrySize = dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE;
157 if (dataSize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) {
173 entry->size = dataSize;
174 memcpy(&entry->data, data, dataSize);
187 dataQueue->queue->size = dataSize;
195 ((IODataQueueEntry *)((UInt8 *)dataQueue->queue + tail))->size = dataSize;
198 memcpy(&dataQueue->queue->data, data, dataSize);
215 entry->size = dataSize;
216 memcpy(&entry->data, data, dataSize);
[all...]
H A DIOSharedDataQueue.cpp183 Boolean IOSharedDataQueue::enqueue(void * data, UInt32 dataSize) argument
187 const UInt32 entrySize = dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE;
191 if (dataSize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) {
207 entry->size = dataSize;
208 memcpy(&entry->data, data, dataSize);
221 dataQueue->queue->size = dataSize;
229 ((IODataQueueEntry *)((UInt8 *)dataQueue->queue + tail))->size = dataSize;
232 memcpy(&dataQueue->queue->data, data, dataSize);
249 entry->size = dataSize;
250 memcpy(&entry->data, data, dataSize);
270 dequeue(void *data, UInt32 *dataSize) argument
[all...]
/macosx-10.10/Security-57031.1.35/SecurityTests/cspxutils/macTest/
H A DmacTest.c24 printf(" d=dataSize (default = %d)\n", DATA_SIZE_DEF);
46 unsigned dataSize = DATA_SIZE_DEF; local
59 dataSize = atoi(&argv[arg][2]);
103 randData.Data = (uint8 *)CSSM_MALLOC(dataSize);
104 randData.Length = dataSize;
105 simpleGenData(&randData, dataSize, dataSize);
/macosx-10.10/WebCore-7600.1.25/platform/audio/ios/
H A DAudioFileReaderIOS.h46 AudioFileReader(const void* data, size_t dataSize);
52 size_t dataSize() const { return m_dataSize; } function in class:WebCore::AudioFileReader
H A DAudioFileReaderIOS.cpp82 AudioFileReader::AudioFileReader(const void* data, size_t dataSize) argument
84 , m_dataSize(dataSize)
112 size_t dataSize = audioFileReader->dataSize(); local
116 if (static_cast<UInt64>(position) < dataSize) {
117 size_t bytesAvailable = dataSize - static_cast<size_t>(position);
130 return static_cast<AudioFileReader*>(clientData)->dataSize();
240 PassRefPtr<AudioBus> createBusFromInMemoryAudioFile(const void* data, size_t dataSize, bool mixToMono, float sampleRate) argument
242 AudioFileReader reader(data, dataSize);
/macosx-10.10/WebCore-7600.1.25/platform/audio/mac/
H A DAudioFileReaderMac.h45 AudioFileReader(const void* data, size_t dataSize);
52 size_t dataSize() const { return m_dataSize; } function in class:WebCore::AudioFileReader
H A DAudioFileReaderMac.cpp76 AudioFileReader::AudioFileReader(const void* data, size_t dataSize) argument
78 , m_dataSize(dataSize)
109 size_t dataSize = audioFileReader->dataSize(); local
113 if (static_cast<UInt64>(position) < dataSize) {
114 size_t bytesAvailable = dataSize - static_cast<size_t>(position);
129 return audioFileReader->dataSize();
245 PassRefPtr<AudioBus> createBusFromInMemoryAudioFile(const void* data, size_t dataSize, bool mixToMono, float sampleRate) argument
247 return AudioFileReader(data, dataSize).createBus(sampleRate, mixToMono);
/macosx-10.10/WebCore-7600.1.25/platform/audio/
H A DAudioFileReader.h45 PassRefPtr<AudioBus> createBusFromInMemoryAudioFile(const void* data, size_t dataSize, bool mixToMono, float sampleRate);
/macosx-10.10/hfs-285/fsck_hfs/dfalib/
H A DBTreeScanner.h71 u_int32_t * dataSize );
H A DSBTree.c56 OSErr SearchBTreeRecord(SFCB *fcb, const void* key, UInt32 hint, void* foundKey, void* data, UInt16 *dataSize, UInt32 *newHint) argument
92 result = BTSearchRecord( fcb, &searchIterator, kInvalidMRUCacheKey, &btRecord, dataSize, resultIterator );
104 if ( DEBUG_BUILD && !ValidHFSRecord(data, btcb, *dataSize) )
131 OSErr GetBTreeRecord(SFCB *fcb, SInt16 selectionIndex, void* key, void* data, UInt16 *dataSize, UInt32 *newHint) argument
184 result = BTIterateRecord( fcb, kBTreeNextRecord, iterator, &btRecord, dataSize );
195 result = BTIterateRecord( fcb, kBTreePrevRecord, iterator, &btRecord, dataSize );
201 result = BTIterateRecord( fcb, operation, iterator, &btRecord, dataSize );
212 if ( DEBUG_BUILD && !ValidHFSRecord(data, btcb, *dataSize) )
223 OSErr InsertBTreeRecord(SFCB *fcb, const void* key, const void* data, UInt16 dataSize, UInt32 *newHint) argument
234 btRecord.itemSize = dataSize;
285 ReplaceBTreeRecord(SFCB *fcb, const void* key, UInt32 hint, void *newData, UInt16 dataSize, UInt32 *newHint) argument
[all...]
/macosx-10.10/IOHIDFamily-606.1.7/tools/
H A DIOHIDUserDeviceTest.c732 uint32_t dataSize = 0; local
750 dataSize = sizeof(gKeyboardDesc);
751 data = malloc(dataSize);
756 bcopy(gKeyboardDesc, data, dataSize);
757 dataIndex = dataSize;
764 dataSize = sizeof(gUnicodeDesc);
765 data = malloc(dataSize);
769 bcopy(gUnicodeDesc, data, dataSize);
770 dataIndex = dataSize;
777 dataSize
[all...]
/macosx-10.10/zlib-55/zlib/contrib/minizip/
H A Dmztools.c109 int dataSize = cpsize; local
110 if (dataSize == 0) {
111 dataSize = uncpsize;
113 if (dataSize > 0) {
114 char* data = malloc(dataSize);
116 if ((int)fread(data, 1, dataSize, fpZip) == dataSize) {
117 if ((int)fwrite(data, 1, dataSize, fpOut) == dataSize) {
118 offset += dataSize;
[all...]
/macosx-10.10/OpenAL-54/Source/OpenAL/
H A DMacOSX_OALExtensions.h151 typedef ALenum (*alcASAGetSourceProcPtr) (ALuint property, ALuint source, ALvoid *data, ALuint* dataSize);
152 typedef ALenum (*alcASASetSourceProcPtr) (ALuint property, ALuint source, ALvoid *data, ALuint dataSize);
153 typedef ALenum (*alcASAGetListenerProcPtr) (ALuint property, ALvoid *data, ALuint* dataSize);
154 typedef ALenum (*alcASASetListenerProcPtr) (ALuint property, ALvoid *data, ALuint dataSize);
/macosx-10.10/SmartCardServices-55111/src/PCSC/
H A Dwinscard_msg.c61 unsigned int dataSize)
78 size_t remaining = dataSize;
174 unsigned int dataSize)
191 size_t remaining = dataSize;
60 MSGSendData(int filedes, int blockAmount, const void *data, unsigned int dataSize) argument
173 MSGRecieveData(int filedes, int blockAmount, void *data, unsigned int dataSize) argument
/macosx-10.10/ICU-531.30/icuSources/io/
H A Dustdio.c410 int32_t dataSize; local
420 dataSize = (int32_t)(str->fLimit - str->fPos);
421 if (f->fFileno == 0 && dataSize > 0) {
427 if(dataSize != 0) {
428 uprv_memmove(f->fUCBuffer, str->fPos, dataSize * sizeof(UChar)); /* not accessing beyond memory */
433 availLength = UFILE_UCHARBUFFER_SIZE - dataSize;
457 myTarget = f->fUCBuffer + dataSize;
486 int32_t dataSize; local
509 dataSize = (int32_t)(str->fLimit - str->fPos);
512 if (dataSize
695 int32_t dataSize; local
[all...]
/macosx-10.10/JavaScriptCore-7600.1.17/runtime/
H A DJSDataViewPrototype.cpp120 const unsigned dataSize = sizeof(typename Adaptor::Type); local
123 uint8_t rawBytes[dataSize];
129 for (unsigned i = dataSize; i--;)
132 for (unsigned i = 0; i < dataSize; i++)
153 const unsigned dataSize = sizeof(typename Adaptor::Type); local
156 uint8_t rawBytes[dataSize];
178 for (unsigned i = dataSize; i--;)
181 for (unsigned i = 0; i < dataSize; i++)

Completed in 254 milliseconds

123456