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

123456

/macosx-10.9.5/WebCore-7537.78.1/html/
H A DImageData.cpp36 Checked<int, RecordOverflow> dataSize = 4; local
37 dataSize *= size.width();
38 dataSize *= size.height();
39 if (dataSize.hasOverflowed())
47 Checked<int, RecordOverflow> dataSize = 4; local
48 dataSize *= size.width();
49 dataSize *= size.height();
50 if (dataSize.hasOverflowed())
53 if (dataSize.unsafeGet() < 0
54 || static_cast<unsigned>(dataSize
[all...]
/macosx-10.9.5/IOHIDFamily-503.215.2/IOHIDFamily/
H A DIOHIDEventSystemQueue.cpp31 Boolean IOHIDEventSystemQueue::enqueue(void *data, UInt32 dataSize) argument
37 result = super::enqueue(data, dataSize);
H A DIOHIDEventServiceQueue.cpp66 IOByteCount dataSize = event->getLength(); local
69 const UInt32 entrySize = dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE;
81 entry->size = dataSize;
82 event->readBytes(&entry->data, dataSize);
96 dataQueue->queue->size = dataSize;
104 ((IODataQueueEntry *)((UInt8 *)dataQueue->queue + tail))->size = dataSize;
107 event->readBytes(&dataQueue->queue->data, dataSize);
127 entry->size = dataSize;
128 event->readBytes(&entry->data, dataSize);
H A DIOHIDEventSystemQueue.h41 virtual Boolean enqueue(void *data, UInt32 dataSize);
/macosx-10.9.5/IOKitUser-907.100.13/
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);
241 IODataQueueEnqueue(IODataQueueMemory *dataQueue, void *data, uint32_t dataSize) argument
248 _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.9.5/WebCore-7537.78.1/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.9.5/xnu-2422.115.4/iokit/Kernel/
H A DIODataQueue.cpp131 Boolean IODataQueue::enqueue(void * data, UInt32 dataSize) argument
135 const UInt32 entrySize = dataSize + DATA_QUEUE_ENTRY_HEADER_SIZE;
139 if (dataSize > UINT32_MAX - DATA_QUEUE_ENTRY_HEADER_SIZE) {
155 entry->size = dataSize;
156 memcpy(&entry->data, data, dataSize);
169 dataQueue->queue->size = dataSize;
177 ((IODataQueueEntry *)((UInt8 *)dataQueue->queue + tail))->size = dataSize;
180 memcpy(&dataQueue->queue->data, data, dataSize);
197 entry->size = dataSize;
198 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.9.5/WebCore-7537.78.1/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.cpp74 AudioFileReader::AudioFileReader(const void* data, size_t dataSize) argument
76 , m_dataSize(dataSize)
107 size_t dataSize = audioFileReader->dataSize(); local
111 if (static_cast<UInt64>(position) < dataSize) {
112 size_t bytesAvailable = dataSize - static_cast<size_t>(position);
127 return audioFileReader->dataSize();
244 PassRefPtr<AudioBus> createBusFromInMemoryAudioFile(const void* data, size_t dataSize, bool mixToMono, float sampleRate) argument
246 AudioFileReader reader(data, dataSize);
/macosx-10.9.5/WebCore-7537.78.1/platform/network/qt/
H A DQtMIMETypeSniffer.cpp47 if (!isReplyFinished && m_reply->bytesAvailable() < m_sniffer.dataSize())
50 QByteArray data = m_reply->peek(m_sniffer.dataSize());
/macosx-10.9.5/xnu-2422.115.4/iokit/IOKit/
H A DIOSharedDataQueue.h116 * @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.
118 * @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.
121 virtual Boolean dequeue(void *data, UInt32 *dataSize);
126 * @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, sendDataAvailableNotification() is called to send a message to the user process that data is now available.
128 * @param dataSize Size of the data pointed to by data.
131 virtual Boolean enqueue(void *data, UInt32 dataSize);
/macosx-10.9.5/WebCore-7537.78.1/platform/audio/
H A DAudioFileReader.h45 PassRefPtr<AudioBus> createBusFromInMemoryAudioFile(const void* data, size_t dataSize, bool mixToMono, float sampleRate);
/macosx-10.9.5/hfs-226.1.1/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.9.5/WebKit2-7537.78.2/WebProcess/qt/
H A DQtNetworkReply.cpp50 void QtNetworkReply::setData(const SharedMemory::Handle& handle, qint64 dataSize) argument
58 m_bytesAvailable = dataSize;
59 m_sharedMemorySize = dataSize;
H A DQtNetworkReply.h49 void setData(const SharedMemory::Handle&, qint64 dataSize);
/macosx-10.9.5/zlib-53/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.9.5/OpenAL-52.1/Source/OpenAL/
H A DMacOSX_OALExtensions.h129 typedef ALenum (*alcASAGetSourceProcPtr) (ALuint property, ALuint source, ALvoid *data, ALuint* dataSize);
130 typedef ALenum (*alcASASetSourceProcPtr) (ALuint property, ALuint source, ALvoid *data, ALuint dataSize);
131 typedef ALenum (*alcASAGetListenerProcPtr) (ALuint property, ALvoid *data, ALuint* dataSize);
132 typedef ALenum (*alcASASetListenerProcPtr) (ALuint property, ALvoid *data, ALuint dataSize);
H A DoalImp.h60 ALC_API ALenum alcASAGetSource(ALuint property, ALuint source, ALvoid *data, ALuint* dataSize);
61 ALC_API ALenum alcASASetSource(ALuint property, ALuint source, ALvoid *data, ALuint dataSize);
62 ALC_API ALenum alcASAGetListener(ALuint property, ALvoid *data, ALuint* dataSize);
63 ALC_API ALenum alcASASetListener(ALuint property, ALvoid *data, ALuint dataSize);
/macosx-10.9.5/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.9.5/ICU-511.35/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...]

Completed in 253 milliseconds

123456