- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for writeObjectIdentifier (0.09 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt
} fun writeOctetString(byteString: ByteString) { sink().write(byteString) } fun writeUtf8(value: String) { sink().writeUtf8(value) } fun writeObjectIdentifier(s: String) { val utf8 = Buffer().writeUtf8(s) val v1 = utf8.readDecimalLong() require(utf8.readByte() == '.'.code.toByte()) val v2 = utf8.readDecimalLong() writeVariableLengthLong(v1 * 40 + v2)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 5.7K bytes - Click Count (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
val buffer = Buffer() val derWriter = DerWriter(buffer) derWriter.write( name = "test", tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = 6L, ) { derWriter.writeObjectIdentifier("2.999.3") } assertThat(buffer.readByteString()).isEqualTo("0603883703".decodeHex()) } @Test fun `decode relative object identifier`() { val buffer = Buffer()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 31.7K bytes - Click Count (0)