- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 1,057 for qDecode (0.09 sec)
-
staging/src/k8s.io/cli-runtime/pkg/resource/metadata_decoder.go
type metadataValidatingDecoder struct { decoder runtime.Decoder } func (m *metadataValidatingDecoder) Decode(data []byte, defaults *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) { obj, gvk, err := m.decoder.Decode(data, defaults, into) // if we already errored, return
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 20 16:49:23 UTC 2021 - 1.8K bytes - Viewed (0) -
src/image/png/fuzz_test.go
e := &Encoder{CompressionLevel: l} err = e.Encode(&w, img) if err != nil { t.Errorf("failed to encode valid image: %s", err) continue } img1, err := Decode(&w) if err != nil { t.Errorf("failed to decode roundtripped image: %s", err) continue } got := img1.Bounds() want := img.Bounds() if !got.Eq(want) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 03 15:56:27 UTC 2023 - 1.6K bytes - Viewed (0) -
src/image/decode_test.go
{"testdata/video-005.gray.png", "testdata/video-005.gray.png", 0}, } func decode(filename string) (image.Image, string, error) { f, err := os.Open(filename) if err != nil { return nil, "", err } defer f.Close() return image.Decode(bufio.NewReader(f)) } func decodeConfig(filename string) (image.Config, string, error) { f, err := os.Open(filename) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 15:51:48 UTC 2019 - 3.7K bytes - Viewed (0) -
src/unicode/utf16/utf16.go
} return append(a, replacementChar) } // Decode returns the Unicode code point sequence represented // by the UTF-16 encoding s. func Decode(s []uint16) []rune { // Preallocate capacity to hold up to 64 runes. // Decode inlines, so the allocation can live on the stack. buf := make([]rune, 0, 64) return decode(s, buf) } // decode appends to buf the Unicode code point sequence represented
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:08:48 UTC 2024 - 3.9K bytes - Viewed (0) -
src/crypto/tls/cache_test.go
package tls import ( "encoding/pem" "fmt" "runtime" "testing" "time" ) func TestCertCache(t *testing.T) { cc := certCache{} p, _ := pem.Decode([]byte(rsaCertPEM)) if p == nil { t.Fatal("Failed to decode certificate") } certA, err := cc.newCert(p.Bytes) if err != nil { t.Fatalf("newCert failed: %s", err) } certB, err := cc.newCert(p.Bytes) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 07 19:46:27 UTC 2022 - 2.6K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/locklistener/FileLockPacketPayloadTest.groovy
when: def payload = FileLockPacketPayload.decode([1, 0, 0, 0, 0, 0, 0, 0, 42, 1] as byte[], 9) then: payload.lockId == 42 payload.type == UNKNOWN } def "decodes payloads with type #type"() { when: def payload = FileLockPacketPayload.decode([1, 0, 0, 0, 0, 0, 0, 0, 42, type.ordinal()] as byte[], 10) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 2K bytes - Viewed (0) -
src/go/token/serialize.go
Lines []int Infos []lineInfo } type serializedFileSet struct { Base int Files []serializedFile } // Read calls decode to deserialize a file set into s; s must not be nil. func (s *FileSet) Read(decode func(any) error) error { var ss serializedFileSet if err := decode(&ss); err != nil { return err } s.mutex.Lock() s.base = ss.Base files := make([]*File, len(ss.Files))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 29 22:19:48 UTC 2022 - 1.4K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/srvsvc.java
if ( this.netname != null ) { _dst = _dst.deferred; _dst.enc_ndr_string(this.netname); } } @Override public void decode ( NdrBuffer _src ) throws NdrException { _src.align(4); int _netnamep = _src.dec_ndr_long(); if ( _netnamep != 0 ) { _src = _src.deferred;
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Fri Mar 22 20:40:13 UTC 2019 - 19.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java
assertThat(UnsignedLongs.decode("0xffffffffffffffff")).isEqualTo(0xffffffffffffffffL); assertThat(UnsignedLongs.decode("01234567")).isEqualTo(01234567); // octal assertThat(UnsignedLongs.decode("#1234567890abcdef")).isEqualTo(0x1234567890abcdefL); assertThat(UnsignedLongs.decode("987654321012345678")).isEqualTo(987654321012345678L); assertThat(UnsignedLongs.decode("0x135791357913579")).isEqualTo(0x135791357913579L);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Feb 09 15:36:17 UTC 2024 - 13.2K bytes - Viewed (0) -
src/encoding/base64/example_test.go
} func ExampleEncoding_Decode() { str := "SGVsbG8sIHdvcmxkIQ==" dst := make([]byte, base64.StdEncoding.DecodedLen(len(str))) n, err := base64.StdEncoding.Decode(dst, []byte(str)) if err != nil { fmt.Println("decode error:", err) return } dst = dst[:n] fmt.Printf("%q\n", dst) // Output: // "Hello, world!" } func ExampleNewEncoder() { input := []byte("foo\x00bar")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 19 08:44:22 UTC 2021 - 1.9K bytes - Viewed (0)