Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for writeBigInteger (0.1 sec)

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

        }
      }
    
      private fun sink(): BufferedSink = stack[stack.size - 1]
    
      fun writeBoolean(b: Boolean) {
        sink().writeByte(if (b) -1 else 0)
      }
    
      fun writeBigInteger(value: BigInteger) {
        sink().write(value.toByteArray())
      }
    
      fun writeLong(v: Long) {
        val sink = sink()
    
        val lengthBitCount: Int =
          if (v < 0L) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

              override fun decode(reader: DerReader): BigInteger = reader.readBigInteger()
    
              override fun encode(
                writer: DerWriter,
                value: BigInteger,
              ) = writer.writeBigInteger(value)
            },
        )
    
      val BIT_STRING =
        BasicDerAdapter(
          name = "BIT STRING",
          tagClass = DerHeader.TAG_CLASS_UNIVERSAL,
          tag = 3L,
          codec =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top