Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for writeBitString (0.07 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

              override fun decode(reader: DerReader): BitString = reader.readBitString()
    
              override fun encode(
                writer: DerWriter,
                value: BitString,
              ) = writer.writeBitString(value)
            },
        )
    
      val OCTET_STRING =
        BasicDerAdapter(
          name = "OCTET STRING",
          tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
          tag = 4L,
          codec =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

      @Test fun `encode primitive bit string`() {
        val buffer = Buffer()
        val derWriter = DerWriter(buffer)
    
        derWriter.write("test", tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = 3L) {
          derWriter.writeBitString(BitString("0A3B5F291CD0".decodeHex(), 4))
        }
    
        assertThat(buffer.readByteString()).isEqualTo("0307040A3B5F291CD0".decodeHex())
      }
    
      @Test fun `decode primitive string`() {
        val buffer =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 31.7K bytes
    - Viewed (0)
Back to top