Home
last modified time | relevance | path

Searched refs:encodeToByteArray (Results 1 – 8 of 8) sorted by relevance

/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DUtf8Test.java114 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/
DBuffersTest.kt12 val bytes = text.encodeToByteArray() in readBufferStringTest()
35 val bytes = text.encodeToByteArray() in readWriteBufferPrimitivesTest()
49 val jap = " are really すごい!".encodeToByteArray() in readWriteBufferPrimitivesTest()
DJSONTest.kt29 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()
DByteArrayTest.kt140 val encoded = testSet.encodeToByteArray() in testString()
DFlatBufferBuilderTest.kt356 val stringBuffer = ArrayReadBuffer("AlreadyBufferedString".encodeToByteArray()) in TestVectorOfBytes()
/third_party/flatbuffers/kotlin/flatbuffers-kotlin/src/commonMain/kotlin/com/google/flatbuffers/kotlin/
Djson.kt123 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/
DUTF8Benchmark.kt43 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/
DUtf8Test.kt36 assertArrayEquals(utf8Lines[it].encodeToByteArray(), utf8Bytes[it]) in <lambda>()