Home
last modified time | relevance | path

Searched refs:byteOffset (Results 1 – 25 of 40) sorted by relevance

12

/external/webkit/Source/WebCore/html/canvas/
DDataView.h37 …static PassRefPtr<DataView> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned byteLeng…
44 int8_t getInt8(unsigned byteOffset, ExceptionCode&);
45 uint8_t getUint8(unsigned byteOffset, ExceptionCode&);
46 …int16_t getInt16(unsigned byteOffset, ExceptionCode& ec) { return getInt16(byteOffset, false, ec);… in getInt16() argument
47 int16_t getInt16(unsigned byteOffset, bool littleEndian, ExceptionCode&);
48 …uint16_t getUint16(unsigned byteOffset, ExceptionCode& ec) { return getUint16(byteOffset, false, e… in getUint16() argument
49 uint16_t getUint16(unsigned byteOffset, bool littleEndian, ExceptionCode&);
50 …int32_t getInt32(unsigned byteOffset, ExceptionCode& ec) { return getInt32(byteOffset, false, ec);… in getInt32() argument
51 int32_t getInt32(unsigned byteOffset, bool littleEndian, ExceptionCode&);
52 …uint32_t getUint32(unsigned byteOffset, ExceptionCode& ec) { return getUint32(byteOffset, false, e… in getUint32() argument
[all …]
DDataView.cpp43 PassRefPtr<DataView> DataView::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned… in create() argument
45 if (byteOffset > buffer->byteLength()) in create()
47 CheckedInt<uint32_t> checkedOffset(byteOffset); in create()
52 return adoptRef(new DataView(buffer, byteOffset, byteLength)); in create()
55 DataView::DataView(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned byteLength) in DataView() argument
56 : ArrayBufferView(buffer, byteOffset) in DataView()
121 T DataView::getData(unsigned byteOffset, bool littleEndian, ExceptionCode& ec) const in getData() argument
123 if (beyondRange<T>(byteOffset)) { in getData()
130 memcpy(value.bytes, static_cast<const char*>(m_baseAddress) + byteOffset, sizeof(T)); in getData()
136 void DataView::setData(unsigned byteOffset, T value, bool littleEndian, ExceptionCode& ec) in setData() argument
[all …]
DArrayBufferView.cpp34 unsigned byteOffset) in ArrayBufferView() argument
35 : m_byteOffset(byteOffset) in ArrayBufferView()
45 void ArrayBufferView::setImpl(ArrayBufferView* array, unsigned byteOffset, ExceptionCode& ec) in setImpl() argument
47 if (byteOffset > byteLength() in setImpl()
48 || byteOffset + array->byteLength() > byteLength() in setImpl()
49 || byteOffset + array->byteLength() < byteOffset) { in setImpl()
56 memmove(base + byteOffset, array->baseAddress(), array->byteLength()); in setImpl()
59 void ArrayBufferView::setRangeImpl(const char* data, size_t dataByteLength, unsigned byteOffset, Ex… in setRangeImpl() argument
61 if (byteOffset > byteLength() in setRangeImpl()
62 || byteOffset + dataByteLength > byteLength() in setRangeImpl()
[all …]
DArrayBufferView.h62 unsigned byteOffset() const in byteOffset() function
72 ArrayBufferView(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset);
74 void setImpl(ArrayBufferView* array, unsigned byteOffset, ExceptionCode& ec);
76 …void setRangeImpl(const char* data, size_t dataByteLength, unsigned byteOffset, ExceptionCode& ec);
78 void zeroRangeImpl(unsigned byteOffset, size_t rangeByteLength, ExceptionCode& ec);
87 unsigned byteOffset, in verifySubRange() argument
92 if (sizeof(T) > 1 && byteOffset % sizeof(T)) in verifySubRange()
94 if (byteOffset > buffer->byteLength()) in verifySubRange()
96 unsigned remainingElements = (buffer->byteLength() - byteOffset) / sizeof(T); in verifySubRange()
DDataView.idl38 // int8_t getInt8(in unsigned long byteOffset);
39 // uint8_t getUint8(in unsigned long byteOffset);
45 …[StrictTypeChecking, RequiresAllArguments=Raise] short getInt16(in unsigned long byteOffset, in [O…
47 … RequiresAllArguments=Raise] unsigned short getUint16(in unsigned long byteOffset, in [Optional] b…
49 …[StrictTypeChecking, RequiresAllArguments=Raise] long getInt32(in unsigned long byteOffset, in [Op…
51 …, RequiresAllArguments=Raise] unsigned long getUint32(in unsigned long byteOffset, in [Optional] b…
55 …hecking, RequiresAllArguments=Raise] float getFloat32(in unsigned long byteOffset, in [Optional] b…
57 …ecking, RequiresAllArguments=Raise] double getFloat64(in unsigned long byteOffset, in [Optional] b…
61 // void setInt8(in unsigned long byteOffset, in int8_t value);
62 // void setUint8(in unsigned long byteOffset, in uint8_t value);
[all …]
DFloat64Array.cpp42 PassRefPtr<Float64Array> Float64Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, … in create() argument
44 return TypedArrayBase<double>::create<Float64Array>(buffer, byteOffset, length); in create()
47 Float64Array::Float64Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) in Float64Array() argument
48 : TypedArrayBase<double>(buffer, byteOffset, length) in Float64Array()
DUint32Array.cpp42 PassRefPtr<Uint32Array> Uint32Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, un… in create() argument
44 return TypedArrayBase<unsigned int>::create<Uint32Array>(buffer, byteOffset, length); in create()
47 Uint32Array::Uint32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) in Uint32Array() argument
48 : IntegralTypedArrayBase<unsigned int>(buffer, byteOffset, length) in Uint32Array()
DUint8Array.cpp42 PassRefPtr<Uint8Array> Uint8Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsi… in create() argument
44 return TypedArrayBase<unsigned char>::create<Uint8Array>(buffer, byteOffset, length); in create()
47 Uint8Array::Uint8Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) in Uint8Array() argument
48 : IntegralTypedArrayBase<unsigned char>(buffer, byteOffset, length) in Uint8Array()
DUint16Array.cpp42 PassRefPtr<Uint16Array> Uint16Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, un… in create() argument
44 return TypedArrayBase<unsigned short>::create<Uint16Array>(buffer, byteOffset, length); in create()
47 Uint16Array::Uint16Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) in Uint16Array() argument
48 : IntegralTypedArrayBase<unsigned short>(buffer, byteOffset, length) in Uint16Array()
DInt8Array.cpp42 PassRefPtr<Int8Array> Int8Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsign… in create() argument
44 return TypedArrayBase<signed char>::create<Int8Array>(buffer, byteOffset, length); in create()
47 Int8Array::Int8Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) in Int8Array() argument
48 : IntegralTypedArrayBase<signed char>(buffer, byteOffset, length) in Int8Array()
DInt16Array.cpp41 PassRefPtr<Int16Array> Int16Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsi… in create() argument
43 return TypedArrayBase<short>::create<Int16Array>(buffer, byteOffset, length); in create()
46 Int16Array::Int16Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) in Int16Array() argument
47 : IntegralTypedArrayBase<short>(buffer, byteOffset, length) in Int16Array()
DFloat32Array.cpp42 PassRefPtr<Float32Array> Float32Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, … in create() argument
44 return TypedArrayBase<float>::create<Float32Array>(buffer, byteOffset, length); in create()
47 Float32Array::Float32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) in Float32Array() argument
48 : TypedArrayBase<float>(buffer, byteOffset, length) in Float32Array()
DInt32Array.cpp42 PassRefPtr<Int32Array> Int32Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsi… in create() argument
44 return TypedArrayBase<int>::create<Int32Array>(buffer, byteOffset, length); in create()
47 Int32Array::Int32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) in Int32Array() argument
48 : IntegralTypedArrayBase<int>(buffer, byteOffset, length) in Int32Array()
DTypedArrayBase.h69 TypedArrayBase(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length) in TypedArrayBase() argument
70 : ArrayBufferView(buffer, byteOffset) in TypedArrayBase()
96 unsigned byteOffset, in create() argument
100 if (!verifySubRange<T>(buf, byteOffset, length)) in create()
103 return adoptRef(new Subclass(buf, byteOffset, length)); in create()
DWebGLBuffer.cpp58 bool WebGLBuffer::associateBufferDataImpl(ArrayBuffer* array, GC3Dintptr byteOffset, GC3Dsizeiptr b… in associateBufferDataImpl() argument
60 if (byteLength < 0 || byteOffset < 0) in associateBufferDataImpl()
64 CheckedInt<GC3Dintptr> checkedOffset(byteOffset); in associateBufferDataImpl()
86 static_cast<unsigned char*>(array->data()) + byteOffset, in associateBufferDataImpl()
118 return associateBufferDataImpl(array->buffer().get(), array->byteOffset(), array->byteLength()); in associateBufferData()
165 …return associateBufferSubDataImpl(offset, array->buffer().get(), array->byteOffset(), array->byteL… in associateBufferSubData()
DInt16Array.h39 …static PassRefPtr<Int16Array> create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned…
49 unsigned byteOffset,
/external/aac/libFDK/src/
DFDK_bitbuffer.cpp160 UINT byteOffset = hBitBuf->BitNdx >> 3 ; in FDK_get() local
169 UINT tx = (hBitBuf->Buffer [ byteOffset & byteMask] << 24) | in FDK_get()
170 (hBitBuf->Buffer [(byteOffset+1) & byteMask] << 16) | in FDK_get()
171 (hBitBuf->Buffer [(byteOffset+2) & byteMask] << 8) | in FDK_get()
172 hBitBuf->Buffer [(byteOffset+3) & byteMask]; in FDK_get()
177 tx |= hBitBuf->Buffer [(byteOffset+4) & byteMask] >> (8-bitOffset); in FDK_get()
192 UINT byteOffset = (BitNdx-1) >> 3; in FDK_get32() local
193 UINT cache = (hBitBuf->Buffer[(byteOffset-3)] << 24) | in FDK_get32()
194 (hBitBuf->Buffer[(byteOffset-2)] << 16) | in FDK_get32()
195 (hBitBuf->Buffer[(byteOffset-1)] << 8) | in FDK_get32()
[all …]
/external/icu4c/tools/genrb/
Dreslist.c128 res_preWrite(uint32_t *byteOffset,
138 res_write(UNewDataMemory *mem, uint32_t *byteOffset,
374 string_preWrite(uint32_t *byteOffset, in string_preWrite() argument
378 res->fRes = URES_MAKE_RESOURCE(URES_STRING, *byteOffset >> 2); in string_preWrite()
379 *byteOffset += 4 + (res->u.fString.fLength + 1) * U_SIZEOF_UCHAR; in string_preWrite()
383 bin_preWrite(uint32_t *byteOffset, in bin_preWrite() argument
387 uint32_t dataStart = *byteOffset + sizeof(res->u.fBinaryValue.fLength); in bin_preWrite()
391 *byteOffset += pad; /* pad == 4 or 8 or 12 */ in bin_preWrite()
393 res->fRes = URES_MAKE_RESOURCE(URES_BINARY, *byteOffset >> 2); in bin_preWrite()
394 *byteOffset += 4 + res->u.fBinaryValue.fLength; in bin_preWrite()
[all …]
/external/webkit/Source/WebCore/bindings/v8/custom/
DV8DataViewCustom.cpp64 EXCEPTION_BLOCK(unsigned, byteOffset, toUInt32(args[0])); in getInt8Callback()
65 int8_t result = imp->getInt8(byteOffset, ec); in getInt8Callback()
81 EXCEPTION_BLOCK(unsigned, byteOffset, toUInt32(args[0])); in getUint8Callback()
82 uint8_t result = imp->getUint8(byteOffset, ec); in getUint8Callback()
98 EXCEPTION_BLOCK(unsigned, byteOffset, toUInt32(args[0])); in setInt8Callback()
100 imp->setInt8(byteOffset, static_cast<int8_t>(value), ec); in setInt8Callback()
114 EXCEPTION_BLOCK(unsigned, byteOffset, toUInt32(args[0])); in setUint8Callback()
116 imp->setUint8(byteOffset, static_cast<uint8_t>(value), ec); in setUint8Callback()
/external/webkit/Source/WebCore/bindings/js/
DJSDataViewCustom.cpp70 unsigned byteOffset = exec->argument(0).toUInt32(exec); in getDataViewMember() local
84 result = jsNumber(imp->getInt8(byteOffset, ec)); in getDataViewMember()
87 result = jsNumber(imp->getUint8(byteOffset, ec)); in getDataViewMember()
91 …cessDataViewMemberAsFloat32) ? imp->getFloat32(byteOffset, littleEndian, ec) : imp->getFloat64(byt… in getDataViewMember()
127 unsigned byteOffset = exec->argument(0).toUInt32(exec); in setDataViewMember() local
136 imp->setInt8(byteOffset, static_cast<int8_t>(value), ec); in setDataViewMember()
139 imp->setUint8(byteOffset, static_cast<uint8_t>(value), ec); in setDataViewMember()
/external/webkit/LayoutTests/dom/xhtml/level3/core/
Dcanonicalform05.js109 var byteOffset;
158 byteOffset = location.byteOffset;
160 assertEquals("byteOffset",-1,byteOffset);
Ddocumentnormalizedocument13.js109 var byteOffset;
152 byteOffset = location.byteOffset;
154 assertEquals("byteOffset",-1,byteOffset);
Ddocumentnormalizedocument05.js109 var byteOffset;
152 byteOffset = location.byteOffset;
154 assertEquals("byteOffset",-1,byteOffset);
Ddocumentnormalizedocument07.js121 var byteOffset;
164 byteOffset = location.byteOffset;
Ddocumentnormalizedocument06.js122 var byteOffset;
193 byteOffset = location.byteOffset;

12