Home
last modified time | relevance | path

Searched refs:dataSize (Results 1 – 25 of 110) sorted by relevance

12345

/external/webkit/Source/WebCore/platform/network/
DMIMESniffing.cpp145 static inline void skipWhiteSpace(const char* data, size_t& pos, size_t dataSize) in skipWhiteSpace() argument
147 while (pos < dataSize && isWhiteSpace(data[pos])) in skipWhiteSpace()
233 static inline bool maskedCompare(const MagicNumbers& info, const char* data, size_t dataSize) in maskedCompare() argument
235 if (dataSize < info.size) in maskedCompare()
269 static inline bool compare(const MagicNumbers& info, const char* data, size_t dataSize) in compare() argument
273 skipWhiteSpace(data, pos, dataSize); in compare()
275 dataSize -= pos; in compare()
282 result = dataSize >= info.size && !memcmp(data, info.pattern, info.size); in compare()
287 static inline const char* findMIMEType(const char* data, size_t dataSize, const MagicNumbers* types… in findMIMEType() argument
290 if (compare(types[i], data, dataSize)) in findMIMEType()
[all …]
DHTTPHeaderMap.cpp63 size_t dataSize = data->size(); in adopt() local
64 for (size_t index = 0; index < dataSize; ++index) { in adopt()
/external/icu4c/io/
Dustdio.c410 int32_t dataSize; in ufile_fill_uchar_buffer() local
420 dataSize = (int32_t)(str->fLimit - str->fPos); in ufile_fill_uchar_buffer()
421 if (f->fFileno == 0 && dataSize > 0) { in ufile_fill_uchar_buffer()
427 if(dataSize != 0) { in ufile_fill_uchar_buffer()
428 … uprv_memmove(f->fUCBuffer, str->fPos, dataSize * sizeof(UChar)); /* not accessing beyond memory */ in ufile_fill_uchar_buffer()
433 availLength = UFILE_UCHARBUFFER_SIZE - dataSize; in ufile_fill_uchar_buffer()
457 myTarget = f->fUCBuffer + dataSize; in ufile_fill_uchar_buffer()
486 int32_t dataSize; in u_fgets() local
509 dataSize = (int32_t)(str->fLimit - str->fPos); in u_fgets()
512 if (dataSize == 0) in u_fgets()
[all …]
/external/zlib/src/contrib/minizip/
Dmztools.c119 int dataSize = cpsize; variable
120 if (dataSize == 0) {
121 dataSize = uncpsize;
123 if (dataSize > 0) {
124 char* data = malloc(dataSize);
126 if ((int)fread(data, 1, dataSize, fpZip) == dataSize) {
127 if ((int)fwrite(data, 1, dataSize, fpOut) == dataSize) {
128 offset += dataSize;
129 totalBytes += dataSize;
/external/webkit/Source/WebCore/platform/audio/mac/
DAudioFileReaderMac.cpp81 AudioFileReader::AudioFileReader(const void* data, size_t dataSize) in AudioFileReader() argument
83 , m_dataSize(dataSize) in AudioFileReader()
115 size_t dataSize = audioFileReader->dataSize(); in readProc() local
119 if (static_cast<UInt64>(position) < dataSize) { in readProc()
120 size_t bytesAvailable = dataSize - static_cast<size_t>(position); in readProc()
135 return audioFileReader->dataSize(); in getSizeProc()
250 PassOwnPtr<AudioBus> createBusFromInMemoryAudioFile(const void* data, size_t dataSize, bool mixToMo… in createBusFromInMemoryAudioFile() argument
252 AudioFileReader reader(data, dataSize); in createBusFromInMemoryAudioFile()
DAudioFileReaderMac.h45 AudioFileReader(const void* data, size_t dataSize);
52 size_t dataSize() const { return m_dataSize; } in dataSize() function
/external/skia/tests/
DFlateTest.cpp34 size_t dataSize) { in TestFlate() argument
38 SkMemoryStream testData(dataSize); in TestFlate()
41 for (size_t i = 0; i < dataSize; i++) in TestFlate()
44 testStream->setMemory(testData.getMemoryBase(), dataSize, true); in TestFlate()
59 if (dataSize < 1024) in TestFlate()
DWriter32Test.cpp132 const size_t dataSize = 10<<2; in testWritePad() local
133 SkASSERT(SkIsAlign4(dataSize)); in testWritePad()
135 SkAutoMalloc originalData(dataSize); in testWritePad()
139 uint32_t* stop = ptr + (dataSize>>2); in testWritePad()
146 for (size_t len = 0; len < dataSize; len++) { in testWritePad()
159 for (size_t len = 0; len < dataSize; len++) { in testWritePad()
/external/webkit/Source/WebCore/platform/image-decoders/webp/
DWEBPImageDecoder.cpp85 const size_t dataSize = m_data->size(); in decode() local
86 if (dataSize < sizeOfHeader) in decode()
91 if (!WebPGetInfo(dataBytes, dataSize, &width, &height)) in decode()
115 if (!WebPDecodeRGBInto(dataBytes, dataSize, m_rgbOutput.data(), m_rgbOutput.size(), stride)) in decode()
124 const VP8StatusCode status = WebPIUpdate(m_decoder, dataBytes, dataSize); in decode()
/external/javassist/src/main/javassist/
DCtPrimitiveType.java29 private int dataSize; field in CtPrimitiveType
41 dataSize = size; in CtPrimitiveType()
110 public int getDataSize() { return dataSize; } in getDataSize()
/external/guava/guava-tests/test/com/google/common/io/
DFileBackedOutputStreamTest.java78 private void testThreshold(int fileThreshold, int dataSize, boolean singleByte, in testThreshold() argument
80 byte[] data = newPreFilledByteArray(dataSize); in testThreshold()
83 int chunk1 = Math.min(dataSize, fileThreshold); in testThreshold()
84 int chunk2 = dataSize - chunk1; in testThreshold()
99 assertEquals(dataSize, file.length()); in testThreshold()
/external/aac/libSYS/src/
Dwav_file.cpp216 wav->header.dataSize = offset; in WAV_InputOpen()
221 FDKfread(&(wav->header.dataSize), 1, 1, wav->fp); in WAV_InputOpen()
418 wav->header.dataSize = LittleEndian32(0x7fffffff - 36); in WAV_OutputOpen()
429 wav->header.dataSize = wav->header.riffSize = 0; in WAV_OutputOpen()
510 wav->header.dataSize += (numberOfSamples * (bps>>3)); in WAV_OutputWrite()
529 wav->header.dataSize = LittleEndian32(wav->header.dataSize); in WAV_OutputClose()
530 wav->header.riffSize = LittleEndian32(wav->header.dataSize + 36); in WAV_OutputClose()
/external/webkit/Source/JavaScriptCore/runtime/
DPropertyMapHashTable.h219 size_t dataSize();
241 , m_index(static_cast<unsigned*>(fastZeroedMalloc(dataSize()))) in PropertyTable()
251 , m_index(static_cast<unsigned*>(fastMalloc(dataSize()))) in PropertyTable()
257 memcpy(m_index, other.m_index, dataSize()); in PropertyTable()
274 , m_index(static_cast<unsigned*>(fastZeroedMalloc(dataSize()))) in PropertyTable()
465 size_t result = sizeof(PropertyTable) + dataSize(); in sizeInMemory()
497 m_index = static_cast<unsigned*>(fastZeroedMalloc(dataSize())); in rehash()
537 inline size_t PropertyTable::dataSize() in dataSize() function
/external/webkit/Tools/DumpRenderTree/gtk/
DWorkQueueItemGtk.cpp33 size_t dataSize = JSStringGetMaximumUTF8CStringSize(jsString); in JSStringCopyUTF8CString() local
34 gchar* utf8 = (gchar*)g_malloc(dataSize); in JSStringCopyUTF8CString()
35 JSStringGetUTF8CString(jsString, utf8, dataSize); in JSStringCopyUTF8CString()
/external/dexmaker/src/dx/java/com/android/dx/dex/file/
DHeaderItem.java61 int dataSize = lastDataSection.getFileOffset() + in writeTo() local
108 out.annotate(4, "data_size: " + Hex.u4(dataSize)); in writeTo()
112 out.writeInt(dataSize); in writeTo()
/external/webkit/Source/WebCore/platform/audio/chromium/
DAudioBusChromium.cpp51 PassOwnPtr<AudioBus> createBusFromInMemoryAudioFile(const void* data, size_t dataSize, bool mixToMo… in createBusFromInMemoryAudioFile() argument
54 …dioBus = PlatformBridge::decodeAudioFileData(static_cast<const char*>(data), dataSize, sampleRate); in createBusFromInMemoryAudioFile()
/external/webkit/Source/WebCore/platform/network/qt/
DQtMIMETypeSniffer.cpp44 if (!m_reply->isFinished() && m_reply->bytesAvailable() < m_sniffer.dataSize()) in sniff()
47 QByteArray data = m_reply->peek(m_sniffer.dataSize()); in sniff()
/external/skia/legacy/src/core/
DSkMetaData.cpp111 void* SkMetaData::set(const char name[], const void* data, size_t dataSize, Type type, int count) in set() argument
114 SkASSERT(dataSize); in set()
120 Rec* rec = Rec::Alloc(sizeof(Rec) + dataSize * count + len + 1); in set()
127 rec->fDataLen = SkToU8(dataSize); in set()
130 memcpy(rec->data(), data, dataSize * count); in set()
/external/skia/src/core/
DSkMetaData.cpp111 void* SkMetaData::set(const char name[], const void* data, size_t dataSize, Type type, int count) in set() argument
114 SkASSERT(dataSize); in set()
120 Rec* rec = Rec::Alloc(sizeof(Rec) + dataSize * count + len + 1); in set()
127 rec->fDataLen = SkToU8(dataSize); in set()
130 memcpy(rec->data(), data, dataSize * count); in set()
/external/webkit/Source/WebCore/loader/archive/
DArchiveResource.cpp50 unsigned dataSize = data->size(); in create() local
52 ResourceResponse(url, mimeType, dataSize, textEncoding, String()))); in create()
/external/javassist/src/main/javassist/bytecode/
DBytecode.java850 growStack(Descriptor.dataSize(type) - 1); in addGetfield()
866 growStack(Descriptor.dataSize(type) - 1); in addGetfield()
882 growStack(Descriptor.dataSize(type)); in addGetstatic()
898 growStack(Descriptor.dataSize(type)); in addGetstatic()
957 growStack(Descriptor.dataSize(desc) - 1); in addInvokespecial()
1013 growStack(Descriptor.dataSize(desc)); in addInvokestatic()
1085 growStack(Descriptor.dataSize(desc) - 1); in addInvokevirtual()
1153 growStack(Descriptor.dataSize(desc) - 1); in addInvokeinterface()
1329 growStack(-1 - Descriptor.dataSize(desc)); in addPutfield0()
1362 growStack(-Descriptor.dataSize(desc)); in addPutstatic0()
DCodeAnalyzer.java231 stack += Descriptor.dataSize(desc) - 1; in visitInst()
235 stack += Descriptor.dataSize(desc); in visitInst()
240 stack += Descriptor.dataSize(desc) - 1; in visitInst()
260 return Descriptor.dataSize(desc); in getFieldSize()
/external/protobuf/java/src/main/java/com/google/protobuf/
DFieldSet.java571 int dataSize = 0; in writeField() local
573 dataSize += computeElementSizeNoTag(type, element); in writeField()
575 output.writeRawVarint32(dataSize); in writeField()
694 int dataSize = 0; in computeFieldSize() local
696 dataSize += computeElementSizeNoTag(type, element); in computeFieldSize()
698 return dataSize + in computeFieldSize()
700 CodedOutputStream.computeRawVarint32Size(dataSize); in computeFieldSize()
/external/webkit/Source/WebCore/webaudio/
DAudioBuffer.cpp47 PassRefPtr<AudioBuffer> AudioBuffer::createFromAudioFileData(const void* data, size_t dataSize, boo… in createFromAudioFileData() argument
49 OwnPtr<AudioBus> bus = createBusFromInMemoryAudioFile(data, dataSize, mixToMono, sampleRate); in createFromAudioFileData()
/external/webkit/Source/WebCore/platform/graphics/ca/win/
DCACFLayerTreeHost.cpp256 DWORD dataSize = GetRegionData(region.get(), 0, 0); in getDirtyRects() local
257 OwnArrayPtr<unsigned char> regionDataBuffer = adoptArrayPtr(new unsigned char[dataSize]); in getDirtyRects()
259 if (!GetRegionData(region.get(), dataSize, regionData)) in getDirtyRects()

12345