Searched defs:byteLength (Results 1 - 25 of 81) sorted by relevance

1234

/external/chromium_org/third_party/WebKit/Source/wtf/
H A DArrayPiece.cpp19 ArrayPiece::ArrayPiece(void* data, unsigned byteLength) argument
21 initWithData(data, byteLength);
27 initWithData(buffer->data(), buffer->byteLength());
36 initWithData(buffer->baseAddress(), buffer->byteLength());
58 unsigned ArrayPiece::byteLength() const function in class:WTF::ArrayPiece
64 void ArrayPiece::initWithData(void* data, unsigned byteLength) argument
66 m_byteLength = byteLength;
H A DArrayBufferBuilder.h77 unsigned byteLength() const function in class:WTF::ArrayBufferBuilder
85 return m_buffer->byteLength();
H A DArrayBuffer.h45 static inline PassRefPtr<ArrayBuffer> create(const void* source, unsigned byteLength);
53 inline unsigned byteLength() const;
100 return ArrayBuffer::create(other->data(), other->byteLength());
103 PassRefPtr<ArrayBuffer> ArrayBuffer::create(const void* source, unsigned byteLength) argument
105 ArrayBufferContents contents(byteLength, 1, ArrayBufferContents::ZeroInitialize);
109 memcpy(buffer->data(), source, byteLength);
147 unsigned ArrayBuffer::byteLength() const function in class:WTF::ArrayBuffer
159 return sliceImpl(clampIndex(begin), byteLength());
170 unsigned currentLength = byteLength();
/external/chromium_org/third_party/WebKit/Source/web/
H A DWebArrayBufferView.cpp59 unsigned WebArrayBufferView::byteLength() const function in class:blink::WebArrayBufferView
61 return m_private->byteLength();
/external/chromium_org/skia/ext/
H A Danalysis_canvas_unittest.cc288 size_t byteLength = 1; local
310 canvas.drawText(text, byteLength, point.fX, point.fY, paint);
316 canvas.drawPosText(text, byteLength, &point, paint);
322 canvas.drawPosTextH(text, byteLength, &point.fX, point.fY, paint);
328 canvas.drawTextOnPathHV(text, byteLength, path, point.fX, point.fY, paint);
334 canvas.drawTextOnPath(text, byteLength, path, NULL, paint);
340 canvas.drawText(text, byteLength, point.fX, point.fY, paint);
348 canvas.drawText(text, byteLength, point.fX, point.fY, paint);
358 canvas.drawText(text, byteLength, point.fX, point.fY, paint);
368 canvas.drawText(text, byteLength, poin
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/exported/
H A DWebArrayBuffer.cpp62 unsigned WebArrayBuffer::byteLength() const function in class:blink::WebArrayBuffer
65 return m_private->byteLength();
/external/chromium_org/third_party/skia/src/core/
H A DSkFont.cpp61 int SkFont::textToGlyphs(const void* text, size_t byteLength, SkTextEncoding encoding, argument
63 if (0 == byteLength) {
73 count = SkUTF8_CountUnichars((const char*)text, byteLength);
76 count = SkUTF16_CountUnichars((const uint16_t*)text, SkToInt(byteLength >> 1));
79 count = SkToInt(byteLength >> 2);
82 count = SkToInt(byteLength >> 1);
112 SkScalar SkFont::measureText(const void* text, size_t byteLength, SkTextEncoding encoding) const { argument
H A DSkUtils.cpp195 int SkUTF8_CountUnichars(const char utf8[], size_t byteLength) { argument
196 SkASSERT(NULL != utf8 || 0 == byteLength);
199 const char* stop = utf8 + byteLength;
H A DSkReadBuffer.cpp161 const size_t byteLength = count * elementSize; local
162 memcpy(value, fReader.skip(SkAlign4(byteLength)), byteLength);
/external/chromium_org/third_party/skia/src/gpu/
H A DGrTextContext.cpp40 const char text[], size_t byteLength, SkVector* stopVector) {
42 const char* stop = text + byteLength;
39 MeasureText(SkGlyphCache* cache, SkDrawCacheProc glyphCacheProc, const char text[], size_t byteLength, SkVector* stopVector) argument
/external/skia/src/core/
H A DSkFont.cpp61 int SkFont::textToGlyphs(const void* text, size_t byteLength, SkTextEncoding encoding, argument
63 if (0 == byteLength) {
73 count = SkUTF8_CountUnichars((const char*)text, byteLength);
76 count = SkUTF16_CountUnichars((const uint16_t*)text, SkToInt(byteLength >> 1));
79 count = SkToInt(byteLength >> 2);
82 count = SkToInt(byteLength >> 1);
112 SkScalar SkFont::measureText(const void* text, size_t byteLength, SkTextEncoding encoding) const { argument
H A DSkUtils.cpp195 int SkUTF8_CountUnichars(const char utf8[], size_t byteLength) { argument
196 SkASSERT(NULL != utf8 || 0 == byteLength);
199 const char* stop = utf8 + byteLength;
H A DSkReadBuffer.cpp161 const size_t byteLength = count * elementSize; local
162 memcpy(value, fReader.skip(SkAlign4(byteLength)), byteLength);
/external/skia/src/gpu/
H A DGrTextContext.cpp40 const char text[], size_t byteLength, SkVector* stopVector) {
42 const char* stop = text + byteLength;
39 MeasureText(SkGlyphCache* cache, SkDrawCacheProc glyphCacheProc, const char text[], size_t byteLength, SkVector* stopVector) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/macs/
H A DHMac.java84 * byteLength of the algorithm is know for.
96 int byteLength)
100 this.blockLength = byteLength;
94 HMac( Digest digest, int byteLength) argument
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/framework/jdwp/
H A DTypesLengths.java82 private static int byteLength = 1; field in class:TypesLengths
138 return byteLength;
218 byteLength = typeLength;
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/
H A DDataView.cpp54 PassRefPtr<DataView> DataView::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned byteLength) argument
56 if (byteOffset > buffer->byteLength())
59 CheckedInt<uint32_t> checkedLength(byteLength);
61 if (!checkedMax.isValid() || checkedMax.value() > buffer->byteLength())
63 return adoptRef(new DataView(buffer, byteOffset, byteLength));
66 DataView::DataView(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned byteLength) argument
68 , m_byteLength(byteLength)
/external/chromium_org/third_party/icu/source/common/
H A Dpropsvec.c451 int32_t byteLength; local
460 byteLength=pv->rows*(pv->columns-2)*4;
461 clonedArray=(uint32_t *)uprv_malloc(byteLength);
466 uprv_memcpy(clonedArray, pv->v, byteLength);
/external/chromium_org/third_party/skia/src/utils/debugger/
H A DSkObjectParser.cpp328 SkString* SkObjectParser::TextToString(const void* text, size_t byteLength, argument
335 decodedText->append((const char*)text, byteLength);
341 SkToS32(byteLength / 2),
344 SkUTF16_ToUTF8((uint16_t*)text, SkToS32(byteLength / 2), utf8);
351 const SkUnichar* end = (const SkUnichar*)((const char*)text + byteLength);
360 const uint16_t* end = (const uint16_t*)((const char*)text + byteLength);
/external/icu/icu4c/source/common/
H A Dpropsvec.c453 int32_t byteLength; local
462 byteLength=pv->rows*(pv->columns-2)*4;
463 clonedArray=(uint32_t *)uprv_malloc(byteLength);
468 uprv_memcpy(clonedArray, pv->v, byteLength);
/external/skia/src/utils/debugger/
H A DSkObjectParser.cpp328 SkString* SkObjectParser::TextToString(const void* text, size_t byteLength, argument
335 decodedText->append((const char*)text, byteLength);
341 SkToS32(byteLength / 2),
344 SkUTF16_ToUTF8((uint16_t*)text, SkToS32(byteLength / 2), utf8);
351 const SkUnichar* end = (const SkUnichar*)((const char*)text + byteLength);
360 const uint16_t* end = (const uint16_t*)((const char*)text + byteLength);
/external/chromium_org/third_party/WebKit/Source/modules/websockets/
H A DMainThreadWebSocketChannel.cpp139 WebSocketChannel::SendResult MainThreadWebSocketChannel::send(const ArrayBuffer& binaryData, unsigned byteOffset, unsigned byteLength) argument
141 WTF_LOG(Network, "MainThreadWebSocketChannel %p send() Sending ArrayBuffer %p byteOffset=%u byteLength=%u", this, &binaryData, byteOffset, byteLength);
142 enqueueRawFrame(WebSocketFrame::OpCodeBinary, static_cast<const char*>(binaryData.data()) + byteOffset, byteLength);
812 if (!sendFrame(frame->opCode, static_cast<const char*>(result->data()), result->byteLength()))
H A DNewWebSocketChannelImpl.cpp202 WebSocketChannel::SendResult NewWebSocketChannelImpl::send(const ArrayBuffer& buffer, unsigned byteOffset, unsigned byteLength) argument
204 WTF_LOG(Network, "NewWebSocketChannelImpl %p sendArrayBuffer(%p, %u, %u)", this, buffer.data(), byteOffset, byteLength);
208 InspectorInstrumentation::didSendWebSocketFrame(document(), m_identifier, WebSocketFrame::OpCodeBinary, true, static_cast<const char*>(buffer.data()) + byteOffset, byteLength);
213 m_messages.append(adoptPtr(new Message(buffer.slice(byteOffset, byteOffset + byteLength))));
324 size_t size = std::min(static_cast<size_t>(m_sendingQuota), message->arrayBuffer->byteLength() - m_sentSizeOfTopMessage);
325 final = (m_sentSizeOfTopMessage + size == message->arrayBuffer->byteLength());
H A DWorkerThreadableWebSocketChannel.cpp143 WebSocketChannel::SendResult WorkerThreadableWebSocketChannel::send(const ArrayBuffer& binaryData, unsigned byteOffset, unsigned byteLength) argument
147 return m_bridge->send(binaryData, byteOffset, byteLength);
475 WebSocketChannel::SendResult WorkerThreadableWebSocketChannel::Bridge::send(const ArrayBuffer& binaryData, unsigned byteOffset, unsigned byteLength) argument
481 OwnPtr<Vector<char> > data = adoptPtr(new Vector<char>(byteLength));
482 if (binaryData.byteLength())
483 memcpy(data->data(), static_cast<const char*>(binaryData.data()) + byteOffset, byteLength);
/external/chromium_org/third_party/icu/source/test/cintltst/
H A Ducsdetst.c69 static char *extractBytes(const UChar *src, int32_t length, const char *codepage, int32_t *byteLength) argument
81 *byteLength = byteCount;
123 int32_t byteLength = 0, sLength = 0, dLength = 0; local
131 bytes = extractBytes(s, sLength, "UTF-8", &byteLength);
133 ucsdet_setText(csd, bytes, byteLength, &status);
286 int32_t byteLength = 0; local
293 bytes = extractBytes(s, sLength, "ISO-8859-1", &byteLength);
302 ucsdet_setText(csd, bytes, byteLength, &status);
324 ucsdet_setText(csd, bytes, byteLength, &status);

Completed in 1402 milliseconds

1234