Searched defs:byteLength (Results 1 - 25 of 82) 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.h44 static inline PassRefPtr<ArrayBuffer> create(const void* source, unsigned byteLength);
52 inline unsigned byteLength() const;
99 return ArrayBuffer::create(other->data(), other->byteLength());
102 PassRefPtr<ArrayBuffer> ArrayBuffer::create(const void* source, unsigned byteLength) argument
104 ArrayBufferContents contents(byteLength, 1, ArrayBufferContents::ZeroInitialize);
108 memcpy(buffer->data(), source, byteLength);
146 unsigned ArrayBuffer::byteLength() const function in class:WTF::ArrayBuffer
158 return sliceImpl(clampIndex(begin), byteLength());
169 unsigned currentLength = byteLength();
/external/chromium_org/third_party/WebKit/Source/web/
H A DWebArrayBufferView.cpp57 unsigned WebArrayBufferView::byteLength() const function in class:blink::WebArrayBufferView
59 return m_private->byteLength();
/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(utf8 || 0 == byteLength);
199 const char* stop = utf8 + byteLength;
H A DSkReadBuffer.cpp159 const size_t byteLength = count * elementSize; local
160 memcpy(value, fReader.skip(SkAlign4(byteLength)), byteLength);
H A DSkBBoxRecord.cpp94 void SkBBoxRecord::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, argument
97 paint.measureText(text, byteLength, &bbox);
138 INHERITED::onDrawText(text, byteLength, x, y, paint);
187 void SkBBoxRecord::onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[], argument
190 bbox.set(pos, paint.countText(text, byteLength));
203 INHERITED::onDrawPosText(text, byteLength, pos, paint);
207 void SkBBoxRecord::onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos[], argument
209 size_t numChars = paint.countText(text, byteLength);
246 // INHERITED::drawPosTextH(text, byteLength, xpos, constY, paint);
248 drawPosTextHImpl(text, byteLength, xpo
259 onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& path, const SkMatrix* matrix, const SkPaint& paint) argument
[all...]
/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
H A DGrStencilAndCoverTextContext.cpp34 size_t byteLength,
36 SkASSERT(byteLength == 0 || text != NULL);
38 if (text == NULL || byteLength == 0 /*|| fRC->isEmpty()*/) {
57 this->init(paint, skPaint, byteLength, kMaxAccuracy_RenderMode);
71 const char* stop = text + byteLength;
124 size_t byteLength,
128 SkASSERT(byteLength == 0 || text != NULL);
132 if (text == NULL || byteLength == 0/* || fRC->isEmpty()*/) {
145 this->init(paint, skPaint, byteLength, kMaxPerformance_RenderMode, textTranslateY);
149 const char* stop = text + byteLength;
31 drawText(const GrPaint& paint, const SkPaint& skPaint, const char text[], size_t byteLength, SkScalar x, SkScalar y) argument
121 drawPosText(const GrPaint& paint, const SkPaint& skPaint, const char text[], size_t byteLength, const SkScalar pos[], SkScalar constY, int scalarsPerPosition) argument
[all...]
/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.cpp56 PassRefPtr<DataView> DataView::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned byteLength) argument
58 if (byteOffset > buffer->byteLength())
61 CheckedInt<uint32_t> checkedLength(byteLength);
63 if (!checkedMax.isValid() || checkedMax.value() > buffer->byteLength())
65 return adoptRef(new DataView(buffer, byteOffset, byteLength));
68 DataView::DataView(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned byteLength) argument
70 , m_byteLength(byteLength)
/external/chromium_org/third_party/icu/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/chromium_org/third_party/skia/src/utils/debugger/
H A DSkObjectParser.cpp322 SkString* SkObjectParser::TextToString(const void* text, size_t byteLength, argument
329 decodedText->append((const char*)text, byteLength);
335 SkToS32(byteLength / 2),
338 SkUTF16_ToUTF8((uint16_t*)text, SkToS32(byteLength / 2), utf8);
345 const SkUnichar* end = (const SkUnichar*)((const char*)text + byteLength);
354 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 DNewWebSocketChannelImpl.cpp203 void NewWebSocketChannelImpl::send(const ArrayBuffer& buffer, unsigned byteOffset, unsigned byteLength) argument
205 WTF_LOG(Network, "NewWebSocketChannelImpl %p sendArrayBuffer(%p, %u, %u)", this, buffer.data(), byteOffset, byteLength);
209 InspectorInstrumentation::didSendWebSocketFrame(document(), m_identifier, WebSocketFrame::OpCodeBinary, true, static_cast<const char*>(buffer.data()) + byteOffset, byteLength);
214 m_messages.append(adoptPtr(new Message(buffer.slice(byteOffset, byteOffset + byteLength))));
331 size_t size = std::min(static_cast<size_t>(m_sendingQuota), message->arrayBuffer->byteLength() - m_sentSizeOfTopMessage);
332 final = (m_sentSizeOfTopMessage + size == message->arrayBuffer->byteLength());
H A DWorkerThreadableWebSocketChannel.cpp137 void WorkerThreadableWebSocketChannel::send(const ArrayBuffer& binaryData, unsigned byteOffset, unsigned byteLength) argument
140 m_bridge->send(binaryData, byteOffset, byteLength);
419 void Bridge::send(const ArrayBuffer& binaryData, unsigned byteOffset, unsigned byteLength) argument
423 OwnPtr<Vector<char> > data = adoptPtr(new Vector<char>(byteLength));
424 if (binaryData.byteLength())
425 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 4541 milliseconds

1234