- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 629 for reencode (0.7 sec)
-
cmd/metacache_gen_test.go
func TestEncodeDecodemetacache(t *testing.T) { v := metacache{} var buf bytes.Buffer msgp.Encode(&buf, &v) m := v.Msgsize() if buf.Len() > m { t.Log("WARNING: TestEncodeDecodemetacache Msgsize() is inaccurate") } vn := metacache{} err := msgp.Decode(&buf, &vn) if err != nil { t.Error(err) } buf.Reset() msgp.Encode(&buf, &v) err = msgp.NewReader(&buf).Skip() if err != nil { t.Error(err) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 2.3K bytes - Viewed (0) -
platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Combinators.kt
fun <T> singleton(value: T): Codec<T> = SingletonCodec(value) fun <T> codec( encode: suspend WriteContext.(T) -> Unit, decode: suspend ReadContext.() -> T? ): Codec<T> = object : Codec<T> { override suspend fun WriteContext.encode(value: T) = encode(value) override suspend fun ReadContext.decode(): T? = decode() } inline fun <reified T> IsolateContext.ownerService() =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 12:59:39 UTC 2024 - 8.4K bytes - Viewed (0) -
src/encoding/base64/base64.go
// loop below means a nil check at every operation. Lift that nil check // outside of the loop to speed up the encoder. _ = enc.encode di, si := 0, 0 n := (len(src) / 3) * 3 for si < n { // Convert 3x 8bit source bytes into 4 bytes val := uint(src[si+0])<<16 | uint(src[si+1])<<8 | uint(src[si+2]) dst[di+0] = enc.encode[val>>18&0x3F] dst[di+1] = enc.encode[val>>12&0x3F]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 17.6K bytes - Viewed (0) -
src/image/gif/writer_test.go
if err != nil { t.Fatalf("readImg: %v", err) } // Case 1: Encode a wrapped image.Image buf := new(bytes.Buffer) w0 := offsetImage{m0, m0.Bounds()} err = Encode(buf, w0, nil) if err != nil { t.Fatalf("Encode: %v", err) } w1, err := Decode(buf) if err != nil { t.Fatalf("Dencode: %v", err) } avgDelta := averageDelta(m0, w1) if avgDelta > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 19K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/tutorial/externalDependency/kotlin/build.gradle.kts
} dependencies { "classpath"(group = "commons-codec", name = "commons-codec", version = "1.2") } } // end::declare-classpath[] tasks.register("encode") { doLast { val encodedString = Base64().encode("hello world\n".toByteArray()) println(String(encodedString)) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 469 bytes - Viewed (0) -
src/mime/example_test.go
import ( "bytes" "fmt" "io" "mime" ) func ExampleWordEncoder_Encode() { fmt.Println(mime.QEncoding.Encode("utf-8", "¡Hola, señor!")) fmt.Println(mime.QEncoding.Encode("utf-8", "Hello!")) fmt.Println(mime.BEncoding.Encode("UTF-8", "¡Hola, señor!")) fmt.Println(mime.QEncoding.Encode("ISO-8859-1", "Caf\xE9")) // Output: // =?utf-8?q?=C2=A1Hola,_se=C3=B1or!?= // Hello! // =?UTF-8?b?wqFIb2xhLCBzZcOxb3Ih?=
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 18:41:18 UTC 2020 - 2.9K bytes - Viewed (0) -
platforms/jvm/platform-jvm/src/main/java/org/gradle/jvm/tasks/Jar.java
} /** * The character set used to encode JAR metadata like file names. * Defaults to UTF-8. * You can change this property but it is not recommended as JVMs expect JAR metadata to be encoded using UTF-8 * * @return the character set used to encode JAR metadata like file names * @since 2.14 */ @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 8.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/codec_check.go
// CheckCodec makes sure that the codec can encode objects like internalType, // decode all of the external types listed, and also decode them into the given // object. (Will modify internalObject.) (Assumes JSON serialization.) // TODO: verify that the correct external version is chosen on encode... func CheckCodec(c Codec, internalType Object, externalTypes ...schema.GroupVersionKind) error { if _, err := Encode(c, internalType); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 27 07:07:03 UTC 2022 - 1.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/streaming/streaming.go
func NewEncoder(w io.Writer, e runtime.Encoder) Encoder { return &encoder{ writer: w, encoder: e, buf: &bytes.Buffer{}, } } // Encode writes the provided object to the nested writer. func (e *encoder) Encode(obj runtime.Object) error { if err := e.encoder.Encode(obj, e.buf); err != nil { return err } _, err := e.writer.Write(e.buf.Bytes()) e.buf.Reset() return err
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 25 14:51:36 UTC 2023 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/negotiate.go
// stream decoder for a given content type. Does not perform any conversion, but will // encode the object to the desired group, version, and kind. Use when creating a client. func NewClientNegotiator(serializer NegotiatedSerializer, gv schema.GroupVersion) ClientNegotiator { return &clientNegotiator{ serializer: serializer, encode: gv, } } type simpleNegotiatedSerializer struct { info SerializerInfo }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 29 19:55:06 UTC 2020 - 3.7K bytes - Viewed (0)