/third_party/flatbuffers/java/com/google/flatbuffers/ |
D | FlexBuffers.java | 154 private static int indirect(ReadBuf bb, int offset, int byteWidth) { in indirect() argument 156 return (int) (offset - readUInt(bb, offset, byteWidth)); in indirect() 160 private static long readUInt(ReadBuf buff, int end, int byteWidth) { in readUInt() argument 161 switch (byteWidth) { in readUInt() 171 private static int readInt(ReadBuf buff, int end, int byteWidth) { in readInt() argument 172 return (int) readLong(buff, end, byteWidth); in readInt() 176 private static long readLong(ReadBuf buff, int end, int byteWidth) { in readLong() argument 177 switch (byteWidth) { in readLong() 186 private static double readDouble(ReadBuf buff, int end, int byteWidth) { in readDouble() argument 187 switch (byteWidth) { in readDouble() [all …]
|
D | FlexBuffersBuilder.java | 391 int byteWidth = align(bitWidth); in writeBlob() local 392 writeInt(blob.length, byteWidth); in writeBlob() 403 int byteWidth = 1 << alignment; in align() local 404 int padBytes = Value.paddingBytes(bb.writePosition(), byteWidth); in align() 408 return byteWidth; in align() 411 private void writeInt(long value, int byteWidth) { in writeInt() argument 412 switch (byteWidth) { in writeInt() 483 int byteWidth = align(stack.get(0).elemWidth(bb.writePosition(), 0)); in finish() local 484 writeAny(stack.get(0), byteWidth); in finish() 488 bb.put((byte) byteWidth); in finish() [all …]
|
/third_party/flatbuffers/kotlin/flatbuffers-kotlin/src/commonMain/kotlin/com/google/flatbuffers/kotlin/ |
D | FlexBuffersBuilder.kt | 58 val byteWidth = align(stack[0].elemWidth(buffer.writePosition, 0)) in finish() constant 59 writeAny(stack[0], byteWidth) in finish() 63 buffer.put(byteWidth.value.toByte()) in finish() 458 val byteWidth = align(bitWidth) in setTypedVector() constant 461 writeInt(length, byteWidth) in setTypedVector() 465 writeBlock(byteWidth) in setTypedVector() 506 private fun writeAny(toWrite: Value, byteWidth: ByteWidth) = when (toWrite.type) { in writeAny() 507 T_NULL, T_BOOL, T_INT, T_UINT -> writeInt(toWrite.iValue, byteWidth) in writeAny() 508 T_FLOAT -> writeDouble(toWrite.dValue, byteWidth) in writeAny() 509 else -> writeOffset(toWrite.iValue.toInt(), byteWidth) in writeAny() [all …]
|
D | FlexBuffersInternals.kt | 45 internal inline fun ReadBuffer.readULong(end: Int, byteWidth: ByteWidth): ULong { in readULong() 46 return when (byteWidth.value) { in readULong() 51 else -> error("invalid byte width $byteWidth for scalar unsigned integer") in readULong() 55 internal inline fun ReadBuffer.readFloat(end: Int, byteWidth: ByteWidth): Double { in readFloat() 56 return when (byteWidth.value) { in readFloat() 59 …else -> error("invalid byte width $byteWidth for floating point scalar") // we should never reach … in readFloat() 64 … inline fun ReadBuffer.indirect(offset: Int, byteWidth: ByteWidth): Int = offset - readInt(offset,… in indirect() 66 …ernal inline fun ReadBuffer.readSize(end: Int, byteWidth: ByteWidth) = readInt(end - byteWidth, by… in indirect() 67 …nternal inline fun ReadBuffer.readUInt(end: Int, byteWidth: ByteWidth): UInt = readULong(end, byte… in indirect() 68 internal inline fun ReadBuffer.readInt(end: Int, byteWidth: ByteWidth): Int = readULong(end, byteWi… in indirect() [all …]
|
D | FlexBuffers.kt | 30 val byteWidth = buffer[--end].toInt() in <lambda>() constant 32 end -= byteWidth // The root data item. in <lambda>() 33 return Reference(buffer, end, ByteWidth(byteWidth), packetType) in <lambda>() 45 internal val byteWidth: ByteWidth, constant in com.google.flatbuffers.kotlin.Reference 291 val size = buffer.readULong(start - byteWidth, byteWidth).toInt() in toString() 309 …ec = TypedVector(type.toElementTypedVector(), buffer, buffer.indirect(end, parentWidth), byteWidth) in toByteArray() 324 …ec = TypedVector(type.toElementTypedVector(), buffer, buffer.indirect(end, parentWidth), byteWidth) in toShortArray() 339 …ec = TypedVector(type.toElementTypedVector(), buffer, buffer.indirect(end, parentWidth), byteWidth) in toIntArray() 354 …ec = TypedVector(type.toElementTypedVector(), buffer, buffer.indirect(end, parentWidth), byteWidth) in toLongArray() 369 …ec = TypedVector(type.toElementTypedVector(), buffer, buffer.indirect(end, parentWidth), byteWidth) in toUByteArray() [all …]
|
D | JSON.kt | 41 val size = buffer.readULong(start - byteWidth, byteWidth).toInt() in toJson()
|
/third_party/flatbuffers/ts/flexbuffers/ |
D | reference.ts | 17 const byteWidth = dataView.getUint8(len - 1); constant 19 const parentWidth = fromByteWidth(byteWidth); 20 const offset = len - byteWidth - 2; constant 26 private readonly byteWidth: number property in Reference 30 this.byteWidth = 1 << (packedType & 3) 59 …s.dataView, indirect(this.dataView, this.offset, this.parentWidth), fromByteWidth(this.byteWidth)); 62 …s.dataView, indirect(this.dataView, this.offset, this.parentWidth), fromByteWidth(this.byteWidth)); 72 …s.dataView, indirect(this.dataView, this.offset, this.parentWidth), fromByteWidth(this.byteWidth)); 102 const elementOffset = _indirect + key * this.byteWidth; 103 let _packedType = this.dataView.getUint8(_indirect + length * this.byteWidth + key); [all …]
|
D | builder.ts | 35 const byteWidth = toByteWidth(width); constant 36 this.offset += paddingSize(this.offset, byteWidth); 37 return byteWidth; 84 private writeInt(value: number, byteWidth: number) { 85 const newOffset = this.computeOffset(byteWidth); 86 this.pushInt(value, fromByteWidth(byteWidth)); 90 private writeUInt(value: number, byteWidth: number) { 91 const newOffset = this.computeOffset(byteWidth); 92 this.pushUInt(value, fromByteWidth(byteWidth)); 99 const byteWidth = this.align(bitWidth); constant [all …]
|
D | reference-util.ts | 67 …x(key: string, dataView: DataView, offset: number, parentWidth: number, byteWidth: number, length:… 69 const keysVectorOffset = indirect(dataView, offset, parentWidth) - byteWidth * 3; 70 const bitWidth = fromByteWidth(byteWidth); 72 const _byteWidth = readUInt(dataView, keysVectorOffset + byteWidth, bitWidth) as number; 100 …, key: string, dataView: DataView, offset: number, parentWidth: number, byteWidth: number, length:… 102 const elementOffset = _indirect + index * byteWidth; 103 const packedType = dataView.getUint8(_indirect + length * byteWidth + index); 104 …return new Reference(dataView, elementOffset, fromByteWidth(byteWidth), packedType, `${path}/${key… 107 …index: number, dataView: DataView, offset: number, parentWidth: number, byteWidth: number): string… 108 const keysVectorOffset = indirect(dataView, offset, parentWidth) - byteWidth * 3; [all …]
|
D | stack-value.ts | 26 writeToBuffer(byteWidth: number): void { 27 const newOffset = this.builder.computeOffset(byteWidth); 35 const bitWidth = fromByteWidth(byteWidth); 38 const bitWidth = fromByteWidth(byteWidth);
|
/third_party/flatbuffers/dart/lib/src/ |
D | builder.dart | 115 final byteWidth = _align(bitWidth); 116 _writeUInt(length, byteWidth); 153 final byteWidth = _align(bitWidth); 154 _writeUInt(length, byteWidth); 176 final byteWidth = _align(stackValue.width); 177 final newOffset = _newOffset(byteWidth); 200 final byteWidth = _align(stackValue.width); 201 final newOffset = _newOffset(byteWidth); 296 final byteWidth = _align(value.elementWidth(_offset, 0)); 297 _writeStackValue(value, byteWidth); [all …]
|
D | reference.dart | 30 final byteWidth = byteData.getUint8(len - 1); 32 final offset = len - byteWidth - 2; 33 …return Reference._(ByteData.view(buffer), offset, BitWidthUtil.fromByteWidth(byteWidth), packedTyp… 328 …final byteWidth = _readUInt(keysVectorOffset + _byteWidth, BitWidthUtil.fromByteWidth(_byteWidth)); 333 final dif = _diffKeys(input, mid, indirectOffset, byteWidth); 344 int _diffKeys(List<int> input, int index, int indirect_offset, int byteWidth) { 345 final keyOffset = indirect_offset + index * byteWidth; 346 … final keyIndirectOffset = keyOffset - _readUInt(keyOffset, BitWidthUtil.fromByteWidth(byteWidth)); 373 …final byteWidth = _readUInt(keysVectorOffset + _byteWidth, BitWidthUtil.fromByteWidth(_byteWidth)); 374 final keyOffset = indirectOffset + index * byteWidth; [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
D | renderer11_utils.h | 334 void InitConstantBufferDesc(D3D11_BUFFER_DESC *constantBufferDescription, size_t byteWidth);
|
D | renderer11_utils.cpp | 2508 void InitConstantBufferDesc(D3D11_BUFFER_DESC *constantBufferDescription, size_t byteWidth) in InitConstantBufferDesc() argument 2510 constantBufferDescription->ByteWidth = static_cast<UINT>(byteWidth); in InitConstantBufferDesc()
|
D | StateManager11.cpp | 3698 context, static_cast<unsigned int>(uniformBufferOffset), cache.byteWidth, in syncUniformBuffersForShader()
|
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
D | renderer11_utils.h | 335 void InitConstantBufferDesc(D3D11_BUFFER_DESC *constantBufferDescription, size_t byteWidth);
|
D | renderer11_utils.cpp | 2465 void InitConstantBufferDesc(D3D11_BUFFER_DESC *constantBufferDescription, size_t byteWidth) in InitConstantBufferDesc() argument 2467 constantBufferDescription->ByteWidth = static_cast<UINT>(byteWidth); in InitConstantBufferDesc()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/ |
D | ProgramD3D.h | 117 unsigned int byteWidth; member
|
D | ProgramD3D.cpp | 2335 cacheUseSB.byteWidth = uniformBlock.mByteWidths[shaderType]; in updateUniformBufferCache()
|