Home
last modified time | relevance | path

Searched refs:toInt (Results 1 – 25 of 76) sorted by relevance

1234

/third_party/flatbuffers/dart/lib/src/
Dtypes.dart16 if (value.toInt() == value) {
17 var v = value.toInt().abs();
26 if (value.toInt() == value) {
27 var v = value.toInt().abs();
81 static int toInt(ValueType self) {
93 || toInt(self) <= toInt(ValueType.Float);
97 return toInt(self) >= toInt(ValueType.Int)
98 && toInt(self) <= toInt(ValueType.Float);
102 return toInt(self) >= toInt(ValueType.IndirectInt)
103 && toInt(self) <= toInt(ValueType.IndirectFloat);
[all …]
/third_party/flatbuffers/kotlin/flatbuffers-kotlin/src/commonMain/kotlin/com/google/flatbuffers/kotlin/
DUtf8.kt35 while (i < utf16Length && sequence[i].toInt() < 0x80) { in computeEncodedLength()
42 if (c.toInt() < 0x800) { in computeEncodedLength()
43 utf8Length += 0x7f - c.toInt() ushr 31 // branch free! in computeEncodedLength()
63 if (c.toInt() < 0x800) { in encodedLengthGeneral()
64 utf8Length += 0x7f - c.toInt() ushr 31 // branch free! in encodedLengthGeneral()
129 resultArr[resultPos] = (byte1.toInt() and 0x1F shl 6 or trailingByteValue(byte2)).toChar() in handleTwoBytes()
147 …(byte1.toInt() and 0x0F shl 12 or (trailingByteValue(byte2) shl 6) or trailingByteValue(byte3)).to… in handleThreeBytes()
165 (byte1.toInt() shl 28) + (byte2 - 0x90.toByte()) shr 30 != 0 || isNotTrailingByte(byte3) || in handleFourBytes()
171 byte1.toInt() and 0x07 shl 18 in handleFourBytes()
188 private fun trailingByteValue(b: Byte): Int = b.toInt() and 0x3F in isNotTrailingByte()
[all …]
DByteArray.kt53 return (ary[index + 1].toInt() shl 8 or (ary[index].toInt() and 0xff)).toShort() in getString()
60 (ary[index + 3].toInt() shl 24) or in getString()
61 ((ary[index + 2].toInt() and 0xff) shl 16) or in getString()
62 ((ary[index + 1].toInt() and 0xff) shl 8) or in getString()
63 ((ary[index].toInt() and 0xff)) in getString()
89 ary[idx] = (value.toInt() shr 8 and 0xff).toByte() in getString()
102 …line fun setUInt(ary: ByteArray, index: Int, value: UInt): Unit = setInt(ary, index, value.toInt()) in getString()
106 var i = value.toInt() in getString()
111 i = (value shr 32).toInt() in getString()
132 var i = lValue.toInt() in getString()
[all …]
DFlexBuffers.kt30 val byteWidth = buffer[--end].toInt() in <lambda>()
31 val packetType = buffer[--end].toInt() in <lambda>()
176 public fun toInt(): Int = toULong().toInt() in get() method in com.google.flatbuffers.kotlin.Reference
291 val size = buffer.readULong(start - byteWidth, byteWidth).toInt() in toString()
314 T_VECTOR_FLOAT -> ByteArray(vec.size) { vec.getFloat(it).toInt().toByte() } in toByteArray()
329 T_VECTOR_FLOAT -> ShortArray(vec.size) { vec.getFloat(it).toInt().toShort() } in toShortArray()
341 T_VECTOR_INT -> IntArray(vec.size) { vec.getInt(it).toInt() } in toIntArray()
342 T_VECTOR_UINT -> IntArray(vec.size) { vec.getUInt(it).toInt() } in toIntArray()
343 T_VECTOR -> IntArray(vec.size) { vec[it].toInt() } in toIntArray()
344 T_VECTOR_FLOAT -> IntArray(vec.size) { vec.getFloat(it).toInt() } in toIntArray()
[all …]
DJSON.kt41 val size = buffer.readULong(start - byteWidth, byteWidth).toInt() in toJson()
452 return (flags[c.toInt() and 0xFF] and 1) != 0.toByte() in isPlainStringChar()
458 return (flags[c.toInt() and 0xFF] and 2) != 0.toByte() in isWhitespace()
593 result = (result.toInt() shl 4).toChar() in readEscapedChar()
666 if (c.toInt() < 128) { in toPaddedHex()
667 replacement = replacements[c.toInt()] in toPaddedHex()
688 this['\n'.toInt()] = "\\n".encodeToByteArray() in <lambda>()
689 this['\t'.toInt()] = "\\t".encodeToByteArray() in <lambda>()
690 this['\r'.toInt()] = "\\r".encodeToByteArray() in <lambda>()
691 this['\b'.toInt()] = "\\b".encodeToByteArray() in <lambda>()
[all …]
DFlexBuffersBuilder.kt206 return holder.iValue.toInt() in put()
224 return element.iValue.toInt() in put()
447 return vec.iValue.toInt() in endMap()
486 return vec.iValue.toInt() in endAnyVector()
509 else -> writeOffset(toWrite.iValue.toInt(), byteWidth) in writeAny()
712 writeOffset(keys.iValue.toInt(), byteWidth)
739 if (c1.toInt() == 0) return c1 - c2 in compare()
/third_party/vk-gl-cts/executor/
DxeTestResultParser.cpp39 static inline int toInt (const char* str) in toInt() function
546 image->width = toInt(getAttribute("Width")); in handleElementStart()
547 image->height = toInt(getAttribute("Height")); in handleElementStart()
628 config->bufferSize = toInt(getAttribute("BufferSize")); in handleElementStart()
629 config->redSize = toInt(getAttribute("RedSize")); in handleElementStart()
630 config->greenSize = toInt(getAttribute("GreenSize")); in handleElementStart()
631 config->blueSize = toInt(getAttribute("BlueSize")); in handleElementStart()
632 config->luminanceSize = toInt(getAttribute("LuminanceSize")); in handleElementStart()
633 config->alphaSize = toInt(getAttribute("AlphaSize")); in handleElementStart()
634 config->alphaMaskSize = toInt(getAttribute("AlphaMaskSize")); in handleElementStart()
[all …]
/third_party/flatbuffers/kotlin/flatbuffers-kotlin/src/commonTest/kotlin/com/google/flatbuffers/kotlin/
DJSONTest.kt117 assertEquals(parser.parse(values[0]).toInt(), 0) in testInts()
118 assertEquals(parser.parse(values[1]).toInt(), 0) in testInts()
119 assertEquals(parser.parse(values[2]).toInt(), -1) in testInts()
120 assertEquals(parser.parse(values[3]).toInt(), Int.MAX_VALUE) in testInts()
121 assertEquals(parser.parse(values[4]).toInt(), Int.MIN_VALUE) in testInts()
269 assertEquals(1, ref[0].toInt()) in testArrays()
276 assertEquals(i, ref[i].toInt()) in testArrays()
291 assertEquals(2, ref[1].toInt()) in testArrays()
298 assertEquals(2, ref[1].toInt()) in testArrays()
DFlexBuffersTest.kt201 assertArrayEquals(numbers, vecRef[0].toVector().map { it.toInt() }.toIntArray()) in <lambda>()
224 assertEquals(10, map[0].toInt()) in <lambda>()
227 assertEquals(10, map[1]["aint"].toInt()) in <lambda>()
248 assertEquals(10, map["int"].toInt()) in <lambda>()
/third_party/flatbuffers/tests/MyGame/Example/
DAbility.kt21 fun mutateId(id: UInt) : ByteBuffer = bb.putInt(bb_pos + 0, id.toInt()) in mutateId()
23 fun mutateDistance(distance: UInt) : ByteBuffer = bb.putInt(bb_pos + 4, distance.toInt()) in mutateId()
27 builder.putInt(distance.toInt()) in mutateId()
28 builder.putInt(id.toInt()) in mutateId()
DStructOfStructs.kt30 builder.putInt(c_distance.toInt()) in a()
31 builder.putInt(c_id.toInt()) in a()
37 builder.putInt(a_distance.toInt()) in a()
38 builder.putInt(a_id.toInt()) in a()
DRace.kt14 fun name(e: Int) : String = names[e - None.toInt()]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/wpa_gui-qt4/
Dpeers.cpp182 int type = ctx_item->data(peer_role_type).toInt(); in context_menu()
189 config_methods = var.toInt(); in context_menu()
194 method = (enum selected_method) var.toInt(); in context_menu()
308 int peer_type = ctx_item->data(peer_role_type).toInt(); in enter_pin()
436 int type = item->data(peer_role_type).toInt(); in add_station()
534 str.section('=', 1).toInt(0, 0); in add_p2p_group_client()
604 id = (*it).mid(pos).toInt(); in add_bss()
803 if (item->data(peer_role_type).toInt() == type) in find_addr_type()
871 if (item == NULL || item->data(peer_role_type).toInt() != in event_notify()
889 if (item && item->data(peer_role_type).toInt() == in event_notify()
[all …]
Dsignalbar.cpp38 if (index.data().toInt() > 0) in paint()
39 signal = 0 - (256 - index.data().toInt()); in paint()
41 signal = index.data().toInt(); in paint()
Dscanresultsitem.cpp15 return text(sortCol).toInt() < other.text(sortCol).toInt(); in operator <()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/wpa_gui-qt4/
Dpeers.cpp182 int type = ctx_item->data(peer_role_type).toInt(); in context_menu()
189 config_methods = var.toInt(); in context_menu()
194 method = (enum selected_method) var.toInt(); in context_menu()
308 int peer_type = ctx_item->data(peer_role_type).toInt(); in enter_pin()
436 int type = item->data(peer_role_type).toInt(); in add_station()
532 str.section('=', 1).toInt(0, 0); in add_p2p_group_client()
602 id = (*it).mid(pos).toInt(); in add_bss()
801 if (item->data(peer_role_type).toInt() == type) in find_addr_type()
869 if (item == NULL || item->data(peer_role_type).toInt() != in event_notify()
887 if (item && item->data(peer_role_type).toInt() == in event_notify()
[all …]
Dsignalbar.cpp38 if (index.data().toInt() > 0) in paint()
39 signal = 0 - (256 - index.data().toInt()); in paint()
41 signal = index.data().toInt(); in paint()
Dscanresultsitem.cpp15 return text(sortCol).toInt() < other.text(sortCol).toInt(); in operator <()
/third_party/vk-gl-cts/framework/randomshaders/
DrsgVariableValue.cpp110 inline int toInt (bool boolVal) { return boolVal ? 1 : 0; } in toInt() function
119 return CompareIntersection()(toInt(aMin), toInt(aMax), toInt(bMin), toInt(bMax)); in operator ()()
137 return CompareIsSubsetOf()(toInt(aMin), toInt(aMax), toInt(bMin), toInt(bMax)); in operator ()()
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/java/com/mobileer/androidfxlab/
DMainActivity.kt198 Log.d(TAG, "Byte 0 " + Integer.toHexString(data!![offset].toInt())) in <lambda>()
199 Log.d(TAG, "Byte 1 " + Integer.toHexString(data[offset+1].toInt())) in <lambda>()
200 Log.d(TAG, "Byte 2 " + data[offset+2].toInt()) in <lambda>()
205 seekBar.progress = (data[offset+2].toInt() / 1.27).toInt() in <lambda>()
/third_party/skia/experimental/sorttoy/
DCmds.h61 SkDebugf("%d: save", fID.toInt()); in dump()
84 SkDebugf("%d: restore", fID.toInt()); in dump()
111 fID.toInt(), in dump()
149 fID.toInt(), in dump()
/third_party/vk-gl-cts/modules/egl/
DteglInfoTests.cpp46 static int toInt (std::string str) in toInt() function
110 const int stringMajor = toInt(versionTokens[0]); in validateString()
111 const int stringMinor = toInt(versionTokens[1]); in validateString()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/api/python/
Dpybind_conversion.cc22 int toInt(const py::handle &handle) { return py::reinterpret_borrow<py::int_>(handle); } in toInt() function
46 (void)map.emplace(toString(p.first), toInt(p.second)); in toStringMap()
69 [&](const py::handle &handle) { return static_cast<pid_t>(toInt(handle)); }); in toIntVector()
78 (void)map.emplace(toInt(p.first), toIntVector(py::reinterpret_borrow<py::list>(p.second))); in toIntMap()
216 vector.push_back(std::make_shared<CsvRecord<int>>(CsvType::INT, toInt(base))); in toCSVBase()
/third_party/flatbuffers/samples/
DSampleBinary.kt88 assert(monster.inventory(i) == i.toByte().toInt()) in main()
96 assert(monster.weapons(i)!!.damage.toInt() == expectedWeaponDamages[i]) in main()
/third_party/flutter/flutter/examples/flutter_gallery/lib/demo/transformations/
Dtransformations_demo_inertial_motion.dart19 return _getPositionAt(Duration(milliseconds: duration.toInt()));
63 t = stopTime.toInt();

1234