- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 393 for encoded (0.21 sec)
-
fastapi/encoders.py
""" custom_encoder = custom_encoder or {} if custom_encoder: if type(obj) in custom_encoder: return custom_encoder[type(obj)](obj) else: for encoder_type, encoder_instance in custom_encoder.items(): if isinstance(obj, encoder_type): return encoder_instance(obj) if include is not None and not isinstance(include, (set, dict)):
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 21:56:59 GMT 2024 - 10.8K bytes - Viewed (0) -
cmd/erasure-coding.go
ok = false continue } // Delete first shard and reconstruct... first := encoded[0] encoded[0] = nil failOnErr(e.DecodeDataBlocks(encoded)) if a, b := first, encoded[0]; !bytes.Equal(a, b) { fmt.Fprintf(os.Stderr, "%v: error on self-test [d:%d,p:%d]: want %#v, got %#v\n", algo, conf[0], conf[1], hex.EncodeToString(a), hex.EncodeToString(b))
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed Jan 31 02:11:45 GMT 2024 - 8.6K bytes - Viewed (0) -
tests/test_jsonable_encoder.py
def test_custom_enum_encoders(): def custom_enum_encoder(v: Enum): return v.value.lower() class MyEnum(Enum): ENUM_VAL_1 = "ENUM_VAL_1" instance = MyEnum.ENUM_VAL_1 encoded_instance = jsonable_encoder( instance, custom_encoder={MyEnum: custom_enum_encoder} ) assert encoded_instance == custom_enum_encoder(instance) def test_encode_model_with_pure_path():
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 21:56:59 GMT 2024 - 9K bytes - Viewed (0) -
android/guava/src/com/google/common/io/BaseEncoding.java
super(message); } } /** Encodes the specified byte array, and returns the encoded {@code String}. */ public String encode(byte[] bytes) { return encode(bytes, 0, bytes.length); } /** * Encodes the specified range of the specified byte array, and returns the encoded {@code * String}. */ public final String encode(byte[] bytes, int off, int len) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Mar 15 16:33:32 GMT 2024 - 41.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt
internal const val USERNAME_ENCODE_SET = " \"':;<=>@[]^`{}|/\\?#" internal const val PASSWORD_ENCODE_SET = " \"':;<=>@[]^`{}|/\\?#" internal const val PATH_SEGMENT_ENCODE_SET = " \"<>^`{}|/\\?#" internal const val PATH_SEGMENT_ENCODE_SET_URI = "[]" internal const val QUERY_ENCODE_SET = " \"'<>#" internal const val QUERY_COMPONENT_REENCODE_SET = " \"'<>#&=" internal const val QUERY_COMPONENT_ENCODE_SET = " !\"#$&'(),/:;<=>?@[]\\^`{|}~"
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 09 12:33:05 GMT 2024 - 7.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/UrlComponentEncodingTesterJvm.kt
} private fun testToUrl( codePoint: Int, encoding: UrlComponentEncodingTester.Encoding, component: Component, ) { val encoded = encoding.encode(codePoint) val httpUrl = component.urlString(encoded).toHttpUrl() val javaNetUrl = httpUrl.toUrl() if (javaNetUrl.toString() != javaNetUrl.toString()) { fail("Encoding $component $codePoint using $encoding") } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.5K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt
} @Test fun testGoogleDotComEncodingWithIPv6() { val encoded = encodeQuery("google.com", TYPE_AAAA) assertThat(encoded).isEqualTo("AAABAAABAAAAAAAABmdvb2dsZQNjb20AABwAAQ") } @Test fun testGoogleDotComDecodingFromCloudflare() { val encoded = decodeAnswers( hostname = "test.com", byteString = (
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/FormBody.kt
name.canonicalizeWithCharset( encodeSet = FORM_ENCODE_SET, // Plus is encoded as `%2B`, space is encoded as plus. plusIsSpace = false, charset = charset, ) values += value.canonicalizeWithCharset( encodeSet = FORM_ENCODE_SET, // Plus is encoded as `%2B`, space is encoded as plus. plusIsSpace = false,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 09 12:33:05 GMT 2024 - 4.3K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt
val decoded = CertificateAdapters.time.fromDer(generalizedTimeDer) val encoded = CertificateAdapters.time.toDer(decoded) assertThat(decoded).isEqualTo(date("2050-01-01T00:00:00.000+0000").time) assertThat(encoded).isEqualTo(generalizedTimeDer) } /** * Conforming applications MUST be able to process validity dates that are encoded in either * UTCTime or GeneralizedTime.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 43.9K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
encodeBase64Lines(pkcs1Bytes()) append("-----END RSA PRIVATE KEY-----\n") } } private fun pkcs1Bytes(): ByteString { val decoded = CertificateAdapters.privateKeyInfo.fromDer(keyPair.private.encoded.toByteString()) return decoded.privateKey } /** Build a held certificate with reasonable defaults. */ class Builder { private var notBefore = -1L private var notAfter = -1L
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 21.6K bytes - Viewed (1)