/external/flatbuffers/tests/ |
D | KotlinTest.kt | 118 assert(monster.hp == 80.toShort()) in TestBuffer() 119 assert(monster.mana == 150.toShort()) // default in TestBuffer() 132 assert(t.a == 5.toShort()) in TestBuffer() 208 Monster.addHp(fbb2, 50.toShort()) in TestNestedFlatBuffer() 209 Monster.addMana(fbb2, 32.toShort()) in TestNestedFlatBuffer() 336 Test.createTest(fbb, 10.toShort(), 20.toByte()) in TestBuilderBasics() 337 Test.createTest(fbb, 30.toShort(), 40.toByte()) in TestBuilderBasics() 347 Color.Green, 5.toShort(), 6.toByte() in TestBuilderBasics() 350 Monster.addHp(fbb, 80.toShort()) in TestBuilderBasics() 407 assert(monster.mutateMana(10.toShort()) == false) in TestBuilderBasics() [all …]
|
/external/flatbuffers/samples/ |
D | SampleBinary.kt | 57 Monster.addHp(builder, 300.toShort()) in main() 78 assert(monster.mana == 150.toShort()) in main() 79 assert(monster.hp == 300.toShort()) in main() 103 assert(equipped.damage == 5.toShort()) in main()
|
/external/flatbuffers/tests/MyGame/Example/ |
D | Stat.kt | 48 bb.putShort(o + bb_pos, count.toShort()) in mutateCount() 77 builder.addShort(count.toShort()) in startStat()
|
D | TypeAliases.kt | 69 bb.putShort(o + bb_pos, u16.toShort()) in mutateU16() 232 fun addU16(builder: FlatBufferBuilder, u16: UShort) = builder.addShort(3, u16.toShort(), 0) in startTypeAliases()
|
/external/flatbuffers/kotlin/flatbuffers-kotlin/src/commonMain/kotlin/com/google/flatbuffers/kotlin/ |
D | FlexBuffers.kt | 166 public fun toShort(): Short = toULong().toShort() in get() method in com.google.flatbuffers.kotlin.Reference 326 T_VECTOR_INT -> ShortArray(vec.size) { vec.getInt(it).toShort() } in toShortArray() 327 T_VECTOR_UINT -> ShortArray(vec.size) { vec.getUInt(it).toShort() } in toShortArray() 328 T_VECTOR -> ShortArray(vec.size) { vec[it].toShort() } in toShortArray() 329 T_VECTOR_FLOAT -> ShortArray(vec.size) { vec.getFloat(it).toInt().toShort() } in toShortArray()
|
D | ByteArray.kt | 53 return (ary[index + 1].toInt() shl 8 or (ary[index].toInt() and 0xff)).toShort() in getString() 92 … setUShort(ary: ByteArray, index: Int, value: UShort): Unit = setShort(ary, index, value.toShort()) in getString()
|
/external/mockito-kotlin/mockito-kotlin/src/main/kotlin/org/mockito/kotlin/internal/ |
D | CreateInstance.kt | 36 Short::class -> 0.toShort() as T in createInstance()
|
/external/flatbuffers/kotlin/flatbuffers-kotlin/src/commonTest/kotlin/com/google/flatbuffers/kotlin/ |
D | ByteArrayTest.kt | 43 6712.toShort() to byteArrayOf(56, 26), in testShort() 46 0.toShort() to byteArrayOf(0, 0,) in testShort()
|
D | FlexBuffersTest.kt | 89 val numbers = ShortArray(10) { it.toShort() } in <lambda>()
|
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/mutable/ |
D | MutableShortTest.java | 246 assertEquals(Short.valueOf((short) 0), new MutableShort((short) 0).toShort()); in testToShort() 247 assertEquals(Short.valueOf((short) 123), new MutableShort((short) 123).toShort()); in testToShort()
|
/external/flatbuffers/tests/optional_scalars/ |
D | ScalarStuff.kt | 257 …addJustU16(builder: FlatBufferBuilder, justU16: UShort) = builder.addShort(9, justU16.toShort(), 0) in startScalarStuff() 258 …aybeU16(builder: FlatBufferBuilder, maybeU16: UShort) = builder.addShort(10, maybeU16.toShort(), 0) in startScalarStuff() 259 …16(builder: FlatBufferBuilder, defaultU16: UShort) = builder.addShort(11, defaultU16.toShort(), 42) in startScalarStuff()
|
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/mutable/ |
D | MutableShort.java | 330 public Short toShort() { in toShort() method in MutableShort
|
/external/flatbuffers/android/app/src/main/java/generated/com/fbs/app/ |
D | Animal.kt | 55 …un addWeight(builder: FlatBufferBuilder, weight: UShort) = builder.addShort(2, weight.toShort(), 0) in startAnimal()
|
/external/okio/okio/src/commonTest/kotlin/okio/ |
D | AbstractBufferedSourceTest.kt | 64 assertEquals(0xabcd.toShort().toLong(), source.readShort().toLong()) in readShort() 65 assertEquals(0xef01.toShort().toLong(), source.readShort().toLong()) in readShort() 72 assertEquals(0xcdab.toShort().toLong(), source.readShortLe().toLong()) in readShortLe() 73 assertEquals(0x10ef.toShort().toLong(), source.readShortLe().toLong()) in readShortLe() 82 assertEquals(0xabcd.toShort().toLong(), source.readShort().toLong()) in readShortSplitAcrossMultipleSegments()
|
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/math/ |
D | NumberUtils.java | 408 public static short toShort(final String str) { in toShort() method in NumberUtils 409 return toShort(str, (short) 0); in toShort() 429 public static short toShort(final String str, final short defaultValue) { in toShort() method in NumberUtils
|
/external/okio/okio/src/jvmMain/kotlin/okio/ |
D | GzipSource.kt | 153 checkEqual("FHCRC", source.readShortLe().toInt(), crc.value.toShort().toInt()) in consumeHeader()
|
/external/pdfium/third_party/bigint/ |
D | BigInteger.hh | 78 short toShort () const;
|
D | BigUnsigned.hh | 84 short toShort () const;
|
D | BigInteger.cc | 137 short BigInteger::toShort () const { return convertToSignedPrimitive <short, unsig… in toShort() function in BigInteger
|
/external/okio/okio/src/commonMain/kotlin/okio/ |
D | -Util.kt | 36 return reversed.toShort() in reverseBytes()
|
/external/kotlinpoet/kotlinpoet/src/test/java/com/squareup/kotlinpoet/ |
D | CodeBlockTest.kt | 619 assertThat(CodeBlock.of("%L", 1281.toShort()).toString()).isEqualTo("1_281") in useUnderscoresOnLargeDecimalLiterals() 630 assertThat(CodeBlock.of("%S", 1281.toShort()).toString()).isEqualTo("\"1281\"") in useUnderscoresOnLargeDecimalLiterals()
|
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/math/ |
D | NumberUtilsTest.java | 1732 assertEquals(12345, NumberUtils.toShort("12345"), "toShort(String) 1 failed"); in testToShortString() 1733 assertEquals(0, NumberUtils.toShort("abc"), "toShort(String) 2 failed"); in testToShortString() 1734 assertEquals(0, NumberUtils.toShort(""), "toShort(empty) failed"); in testToShortString() 1735 assertEquals(0, NumberUtils.toShort(null), "toShort(null) failed"); in testToShortString() 1743 … assertEquals(12345, NumberUtils.toShort("12345", (short) 5), "toShort(String, short) 1 failed"); in testToShortStringI() 1744 … assertEquals(5, NumberUtils.toShort("1234.5", (short) 5), "toShort(String, short) 2 failed"); in testToShortStringI()
|
/external/apache-commons-lang/src/site/resources/release-notes/ |
D | RELEASE-NOTES-2.5.txt | 48 * [LANG-461] - NumberUtils - add toByte() and toShort() methods
|
/external/okio/okio/src/jvmTest/kotlin/okio/ |
D | TestUtil.kt | 298 return reversed.toShort() in Short()
|
/external/okio/okio/src/nonJvmMain/kotlin/okio/ |
D | Buffer.kt | 193 actual override fun writeShortLe(s: Int): Buffer = writeShort(s.toShort().reverseBytes().toInt()) in <lambda>()
|