Searched refs:encodeToByteArray (Results 1 – 8 of 8) sorted by relevance
| /third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
| D | Utf8Test.java | 114 byte[] output = encodeToByteArray(message, expected.length, safeProcessor); in assertEncoding() 118 output = encodeToByteArray(message, expected.length, unsafeProcessor); in assertEncoding() 140 encodeToByteArray(message, length, safeProcessor); in assertEncoding_insufficientSpace() 150 encodeToByteArray(message, length, unsafeProcessor); in assertEncoding_insufficientSpace() 195 private static byte[] encodeToByteArray(String message, int length, Utf8.Processor processor) { in encodeToByteArray() method in Utf8Test
|
| /third_party/flatbuffers/kotlin/flatbuffers-kotlin/src/commonTest/kotlin/com/google/flatbuffers/kotlin/ |
| D | BuffersTest.kt | 12 val bytes = text.encodeToByteArray() in readBufferStringTest() 35 val bytes = text.encodeToByteArray() in readWriteBufferPrimitivesTest() 49 val jap = " are really すごい!".encodeToByteArray() in readWriteBufferPrimitivesTest()
|
| D | JSONTest.kt | 29 val data = dataStr.encodeToByteArray() in parse2Test() 54 val data = dataStr.encodeToByteArray() in parseSample() 346 JSONParser().parse(ArrayReadBuffer(data.encodeToByteArray())) in testParseMustFail() 424 JSONParser().parse(ArrayReadBuffer(data.encodeToByteArray())) in testParseMustPass()
|
| D | ByteArrayTest.kt | 140 val encoded = testSet.encodeToByteArray() in testString()
|
| D | FlatBufferBuilderTest.kt | 356 val stringBuffer = ArrayReadBuffer("AlreadyBufferedString".encodeToByteArray()) in TestVectorOfBytes()
|
| /third_party/flatbuffers/kotlin/flatbuffers-kotlin/src/commonMain/kotlin/com/google/flatbuffers/kotlin/ |
| D | json.kt | 123 public fun parse(data: String): Reference = parse(ArrayReadBuffer(data.encodeToByteArray())) in parse() 690 this['\n'.code] = "\\n".encodeToByteArray() in <lambda>() 691 this['\t'.code] = "\\t".encodeToByteArray() in <lambda>() 692 this['\r'.code] = "\\r".encodeToByteArray() in <lambda>() 693 this['\b'.code] = "\\b".encodeToByteArray() in <lambda>() 694 this[0x0c] = "\\f".encodeToByteArray() in <lambda>() 695 this['"'.code] = "\\\"".encodeToByteArray() in <lambda>() 696 this['\\'.code] = "\\\\".encodeToByteArray() in <lambda>() 698 this[i] = "\\u${i.toPaddedHex()}".encodeToByteArray() in <lambda>()
|
| /third_party/flatbuffers/kotlin/benchmark/src/jvmMain/kotlin/com/google/flatbuffers/kotlin/benchmark/ |
| D | UTF8Benchmark.kt | 43 private var sampleSmallUtf8Decoded = sampleSmallUtf8.map { it.encodeToByteArray() }.toList() in <lambda>() 45 private var sampleSmallAsciiDecoded = sampleSmallAscii.map { it.encodeToByteArray() }.toList() in <lambda>() 54 blackhole.consume(i.encodeToByteArray()) in encodeUtf8KotlinStandard() 101 blackhole.consume(i.encodeToByteArray()) in encodeAsciiKotlinStandard()
|
| /third_party/flatbuffers/kotlin/flatbuffers-kotlin/src/jvmTest/kotlin/com/google/flatbuffers/kotlin/ |
| D | Utf8Test.kt | 36 assertArrayEquals(utf8Lines[it].encodeToByteArray(), utf8Bytes[it]) in <lambda>()
|