- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 602 for encodeTo (0.07 sec)
-
internal/bucket/lifecycle/delmarker-expiration.go
return err } if dexp.Days <= 0 { return errInvalidDaysDelMarkerExpiration } *de = DelMarkerExpiration(dexp) return nil } // MarshalXML encodes a DelMarkerExpiration value into an XML element func (de DelMarkerExpiration) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { if de.Empty() { return nil } type delMarkerExpiration DelMarkerExpiration
Registered: 2025-05-25 19:28 - Last Modified: 2024-05-01 01:11 - 2.3K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/url/-Url.kt
* * * In queries, ' ' is encoded to '+' and '+' is encoded to "%2B". * * * Characters in `encodeSet` are percent-encoded. * * * Control characters and non-ASCII characters are percent-encoded. * * * All other characters are copied without transformation. * * @param alreadyEncoded true to leave '%' as-is; false to convert it to '%25'.
Registered: 2025-05-30 11:42 - Last Modified: 2025-03-19 19:25 - 7.3K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/Punycode.kt
private const val INITIAL_BIAS = 72 private const val INITIAL_N = 0x80 /** * Returns null if any label is oversized so much that the encoder cannot encode it without * integer overflow. This will not return null for labels that fit within the DNS size * limits. */ fun encode(string: String): String? { var pos = 0 val limit = string.length val result = Buffer() while (pos < limit) {
Registered: 2025-05-30 11:42 - Last Modified: 2024-12-27 13:39 - 8.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/UrlComponentEncodingTester.kt
/** * Returns a new instance configured with a default encode set for the ASCII range. The specific * rules vary per-component: for example, '?' may be identity-encoded in a fragment, but must be * percent-encoded in a path. * * See https://url.spec.whatwg.org/#percent-encoded-bytes */ fun newInstance(): UrlComponentEncodingTester = UrlComponentEncodingTester()
Registered: 2025-05-30 11:42 - Last Modified: 2025-03-19 19:25 - 12.3K bytes - Viewed (0) -
internal/bucket/lifecycle/expiration.go
return err } if numDays <= 0 { return errLifecycleInvalidDays } *eDays = ExpirationDays(numDays) return nil } // MarshalXML encodes number of days to expire if it is non-zero and // encodes empty string otherwise func (eDays ExpirationDays) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error { if eDays == 0 { return nil } return e.EncodeElement(int(eDays), startElement) }
Registered: 2025-05-25 19:28 - Last Modified: 2025-03-30 00:56 - 6.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/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") } }
Registered: 2025-05-30 11:42 - Last Modified: 2025-03-19 19:25 - 5.5K bytes - Viewed (0) -
internal/bucket/lifecycle/transition.go
return errTransitionDateNotMidnight } *tDate = TransitionDate{trnDate} return nil } // MarshalXML encodes expiration date if it is non-zero and encodes // empty string otherwise func (tDate TransitionDate) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error { if tDate.IsZero() { return nil } return e.EncodeElement(tDate.Format(time.RFC3339), startElement) }
Registered: 2025-05-25 19:28 - Last Modified: 2025-03-30 00:56 - 5.1K bytes - Viewed (0) -
cmd/storage-datatypes_test.go
ID: "uuid", Error: "", } var buf bytes.Buffer gob.NewEncoder(&buf).Encode(v) encoded := buf.Bytes() b.Log("Size:", buf.Len(), "bytes") b.SetBytes(1) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { dec := gob.NewDecoder(bytes.NewBuffer(encoded)) err := dec.Decode(&v) if err != nil { b.Fatal(err) } } }
Registered: 2025-05-25 19:28 - Last Modified: 2022-09-19 18:05 - 9.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Credentials.kt
import okio.ByteString.Companion.encode /** Factory for HTTP authorization credentials. */ object Credentials { /** Returns an auth credential for the Basic scheme. */ @JvmStatic @JvmOverloads fun basic( username: String, password: String, charset: Charset = ISO_8859_1, ): String { val usernameAndPassword = "$username:$password" val encoded = usernameAndPassword.encode(charset).base64()
Registered: 2025-05-30 11:42 - Last Modified: 2024-12-27 13:39 - 1.1K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlRequest.java
} /** * Encodes the specified value using the character encoding. * * @param value the value to encode * @return the encoded value * @throws CurlException if the encoding is unsupported */ protected String encode(final String value) { try { return URLEncoder.encode(value, encoding);
Registered: 2025-05-24 08:59 - Last Modified: 2025-05-10 01:44 - 17.8K bytes - Viewed (0)