Searched refs:numBytes (Results 1 - 25 of 128) sorted by relevance

123456

/external/deqp/framework/delibs/debase/
H A DdeMemory.h35 void* deMalloc (int numBytes);
36 void* deCalloc (int numBytes);
37 void* deRealloc (void* ptr, int numBytes);
40 void* deAlignedMalloc (int numBytes, int alignBytes);
49 * \param numBytes Number of bytes to write.
51 DE_INLINE void deMemset (void* ptr, int value, int numBytes) argument
54 memset(ptr, value, numBytes);
57 DE_INLINE int deMemCmp (const void* a, const void* b, int numBytes) argument
59 return memcmp(a, b, numBytes);
66 * \param numBytes Numbe
69 deMemcpy(void* dst, const void* src, int numBytes) argument
74 deMemmove(void* dst, const void* src, int numBytes) argument
[all...]
H A DdeMemory.c43 * \param numBytes Number of bytes to allocate.
46 void* deMalloc (int numBytes) argument
50 DE_ASSERT(numBytes > 0);
52 ptr = malloc((size_t)numBytes);
58 memset(ptr, 0xcd, numBytes);
63 VALGRIND_MAKE_MEM_UNDEFINED(ptr, numBytes);
73 * \param numBytes Number of bytes to allocate.
76 void* deCalloc (int numBytes) argument
78 void* ptr = deMalloc(numBytes);
80 deMemset(ptr, 0, numBytes);
84 deAlignedMalloc(int numBytes, int alignBytes) argument
106 deRealloc(void* ptr, int numBytes) argument
[all...]
/external/deqp/framework/delibs/decpp/
H A DdeMemPool.hpp51 void* alloc (deUintptr numBytes);
52 void* alignedAlloc (deUintptr numBytes, deUint32 alignBytes);
86 inline void* MemPool::alloc (deUintptr numBytes) argument
89 DE_ASSERT((deUintptr)(int)numBytes == numBytes);
90 void* ptr = deMemPool_alloc(m_pool, (int)numBytes);
96 inline void* MemPool::alignedAlloc (deUintptr numBytes, deUint32 alignBytes) argument
99 DE_ASSERT((deUintptr)(int)numBytes == numBytes);
100 void* ptr = deMemPool_alignedAlloc(m_pool, (int)numBytes, alignByte
[all...]
H A DdeRingBuffer.cpp63 int numBytes = rnd.getInt(1, buffer.getNumElements()); local
64 vector<int> tmp (numBytes);
66 buffer.popBack(&tmp[0], numBytes);
68 for (int i = 0; i < numBytes; i++)
71 readPos += numBytes;
77 int numBytes = rnd.getInt(1, de::min(dataSize-writePos, buffer.getNumFree())); local
78 buffer.pushFront(&data[writePos], numBytes);
79 writePos += numBytes;
/external/deqp/execserver/
H A DxsPosixFileReader.hpp45 int read (deUint8* dst, int numBytes) { return m_buf.tryRead(numBytes, dst); } argument
H A DxsTestProcess.hpp51 virtual int readTestLog (deUint8* dst, int numBytes) = DE_NULL;
52 virtual int readInfoLog (deUint8* dst, int numBytes) = DE_NULL;
/external/chromium_org/mojo/android/system/src/org/chromium/mojo/system/impl/
H A DDataPipeConsumerHandleImpl.java43 public int discardData(int numBytes, ReadFlags flags) { argument
44 return mCore.discardData(this, numBytes, flags);
59 public ByteBuffer beginReadData(int numBytes, ReadFlags flags) { argument
60 return mCore.beginReadData(this, numBytes, flags);
H A DDataPipeProducerHandleImpl.java51 public ByteBuffer beginWriteData(int numBytes, WriteFlags flags) { argument
52 return mCore.beginWriteData(this, numBytes, flags);
H A DSharedBufferHandleImpl.java50 public ByteBuffer map(long offset, long numBytes, MapFlags flags) { argument
51 return mCore.map(this, offset, numBytes, flags);
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/crypto/
H A DByteArrayGenerator.java18 * @param numBytes Length of the array to generate.
21 public byte[] getBytes(int numBytes) throws IOException, GeneralSecurityException { argument
25 byte[] bytes = new byte[numBytes];
/external/chromium_org/extensions/renderer/resources/
H A Ddata_sender.js87 * @param {number} numBytes The number of bytes sent.
90 PendingSend.prototype.reportBytesSent = function(numBytes) {
91 var result = this.reportBytesSentInternal_(numBytes);
102 * error occurred after this send, that is, unless numBytes is greater than
104 * @param {number} numBytes The number of bytes sent.
108 PendingSend.prototype.reportBytesSentAndError = function(numBytes, error) {
109 var result = this.reportBytesSentInternal_(numBytes);
130 * @param {number} numBytes The number of bytes sent.
134 PendingSend.prototype.reportBytesSentInternal_ = function(numBytes) {
135 this.bytesReceivedBySink_ += numBytes;
[all...]
/external/deqp/modules/glshared/
H A DglsBufferTestUtil.hpp54 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed);
55 bool compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int numBytes);
90 void setSize (int numBytes);
91 void setData (int numBytes, const deUint8* bytes);
92 void setSubData (int offset, int numBytes, const deUint8* bytes);
123 virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes) = DE_NULL;
124 virtual void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint32 targetHint);
142 void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes);
143 void write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint32 targetHint);
160 virtual void write (deUint32 buffer, int offset, int numBytes, cons
[all...]
H A DglsBufferTestUtil.cpp67 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed) argument
69 std::copy(tcu::RandomValueIterator<deUint8>::begin(seed, numBytes), tcu::RandomValueIterator<deUint8>::end(), ptr);
72 bool compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int numBytes) argument
83 for (;ndx < numBytes; ndx++)
232 void ReferenceBuffer::setSize (int numBytes) argument
234 m_data.resize(numBytes);
237 void ReferenceBuffer::setData (int numBytes, const deUint8* bytes) argument
239 m_data.resize(numBytes);
240 std::copy(bytes, bytes+numBytes, m_data.begin());
243 void ReferenceBuffer::setSubData (int offset, int numBytes, cons argument
258 write(deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint32 targetHint) argument
283 write(deUint32 buffer, int offset, int numBytes, const deUint8* bytes) argument
291 write(deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint32 targetHint) argument
301 write(deUint32 buffer, int offset, int numBytes, const deUint8* bytes) argument
306 write(deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint32 target) argument
316 write(deUint32 buffer, int offset, int numBytes, const deUint8* bytes) argument
321 write(deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint32 target) argument
345 verify(deUint32 buffer, const deUint8* reference, int offset, int numBytes, deUint32 targetHint) argument
371 verify(deUint32 buffer, const deUint8* reference, int offset, int numBytes) argument
379 verify(deUint32 buffer, const deUint8* reference, int offset, int numBytes, deUint32 targetHint) argument
389 verify(deUint32 buffer, const deUint8* reference, int offset, int numBytes) argument
394 verify(deUint32 buffer, const deUint8* reference, int offset, int numBytes, deUint32 target) argument
[all...]
/external/deqp/modules/gles2/functional/
H A Des2fBufferTestUtil.hpp50 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed);
51 bool compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int numBytes);
83 void setSize (int numBytes);
84 void setData (int numBytes, const deUint8* bytes);
85 void setSubData (int offset, int numBytes, const deUint8* bytes);
112 virtual bool verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes) = DE_NULL;
132 bool verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes);
149 bool verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes);
165 bool verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes);
/external/deqp/framework/platform/android/
H A DtcuAndroidAssets.cpp58 void AssetResource::read (deUint8* dst, int numBytes) argument
60 TCU_CHECK(AAsset_read(m_asset, dst, numBytes) == numBytes);
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
H A DRandomImpl.java45 protected byte[] engineGenerateSeed(int numBytes) { argument
47 byte[] b = new byte[numBytes];
/external/conscrypt/src/main/java/org/conscrypt/
H A DOpenSSLRandom.java42 protected byte[] engineGenerateSeed(int numBytes) { argument
44 byte[] output = new byte[numBytes];
/external/chromium_org/third_party/tlslite/tlslite/utils/
H A Dpycrypto_rsakey.py29 s = bytes(numberToByteArray(m, numBytes(self.n)))
34 s = bytes(numberToByteArray(c, numBytes(self.n)))
40 def f(numBytes):
41 return bytes(getRandomBytes(numBytes))
/external/deqp/executor/
H A DxeBatchExecutor.hpp83 void onTestLogData (const deUint8* bytes, int numBytes);
84 void onInfoLogData (const deUint8* bytes, int numBytes);
90 static void enqueueTestLogData (void* userPtr, const deUint8* bytes, int numBytes);
91 static void enqueueInfoLogData (void* userPtr, const deUint8* bytes, int numBytes);
H A DxeBatchResult.cpp40 void InfoLog::append (const deUint8* bytes, int numBytes) argument
42 DE_ASSERT(numBytes > 0);
44 m_data.resize(oldSize+numBytes);
45 deMemcpy(&m_data[oldSize], bytes, numBytes);
H A DxeTestCaseListParser.hpp42 void parse (const deUint8* bytes, int numBytes);
H A DxeCallQueue.cpp163 void CallReader::read (deUint8* bytes, int numBytes) argument
165 DE_ASSERT(m_curPos + numBytes <= m_call->getDataSize());
166 deMemcpy(bytes, m_call->getData()+m_curPos, numBytes);
167 m_curPos += numBytes;
170 const deUint8* CallReader::getDataBlock (int numBytes) argument
172 DE_ASSERT(m_curPos + numBytes <= m_call->getDataSize());
175 m_curPos += numBytes;
212 void CallWriter::write (const deUint8* bytes, int numBytes) argument
216 m_call->setDataSize(curPos+numBytes);
217 deMemcpy(m_call->getData()+curPos, bytes, numBytes);
[all...]
H A DxeBatchExecutor.cpp281 void BatchExecutor::onTestLogData (const deUint8* bytes, int numBytes) argument
285 m_testLogParser.parse(bytes, numBytes);
294 void BatchExecutor::onInfoLogData (const deUint8* bytes, int numBytes) argument
296 if (numBytes > 0 && m_infoLog)
297 m_infoLog->append(bytes, numBytes);
356 void BatchExecutor::enqueueTestLogData (void* userPtr, const deUint8* bytes, int numBytes) argument
362 << numBytes; local
364 writer.write(bytes, numBytes);
368 void BatchExecutor::enqueueInfoLogData (void* userPtr, const deUint8* bytes, int numBytes) argument
374 << numBytes; local
396 int numBytes; local
399 >> numBytes; local
407 int numBytes; local
410 >> numBytes; local
[all...]
H A DxeContainerFormatParser.cpp65 void ContainerFormatParser::feed (const deUint8* bytes, int numBytes) argument
68 if (m_buf.getNumFree() < numBytes)
69 m_buf.resize(getNextBufferSize(m_buf.getSize(), m_buf.getNumElements()+numBytes));
72 m_buf.pushFront(bytes, numBytes);
109 void ContainerFormatParser::getData (deUint8* dst, int numBytes, int offset) argument
111 DE_ASSERT(de::inBounds(offset, 0, m_elementLen) && numBytes > 0 && de::inRange(numBytes+offset, 0, m_elementLen));
113 for (int ndx = 0; ndx < numBytes; ndx++)
/external/chromium_org/mojo/public/js/bindings/
H A Dvalidator.js56 // to start + numBytes.
57 Validator.prototype.isValidRange = function(start, numBytes) {
60 if (start < this.offset || numBytes <= 0 ||
62 !Number.isSafeInteger(numBytes))
65 var newOffset = start + numBytes;
72 Validator.prototype.claimRange = function(start, numBytes) {
73 if (this.isValidRange(start, numBytes)) {
74 this.offset = start + numBytes;
112 var numBytes = this.message.buffer.getUint32(offset);
115 if (numBytes < minNumByte
[all...]

Completed in 1162 milliseconds

123456