Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,060 for doDecode (0.28 sec)

  1. 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)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ArrayOfPrimitiveValueSnapshot.java

            this.array = array;
        }
    
        public static ArrayOfPrimitiveValueSnapshot decode(Decoder decoder) throws IOException {
            byte primitiveTypeCode = decoder.readByte();
            PrimitiveType primitiveType = PrimitiveType.fromOrdinal(primitiveTypeCode);
            return new ArrayOfPrimitiveValueSnapshot(primitiveType, primitiveType.decode(decoder));
        }
    
        public void encode(Encoder encoder) throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. src/encoding/gob/timing_test.go

    	// Fill the buffer with enough to decode
    	testing.AllocsPerRun(N, func() {
    		err := enc.Encode(bench)
    		if err != nil {
    			t.Fatal("encode:", err)
    		}
    	})
    
    	dec := NewDecoder(&buf)
    	allocs := testing.AllocsPerRun(N, func() {
    		*bench = Bench{}
    		err := dec.Decode(&bench)
    		if err != nil {
    			t.Fatal("decode:", err)
    		}
    	})
    	if allocs != 3 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 04 07:16:59 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  4. helm/minio/templates/NOTES.txt

      3. mc ls {{ template "minio.fullname" . }}-local
    
    {{- end }}
    {{- if eq .Values.service.type "LoadBalancer" }}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Sep 29 04:28:45 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  5. src/go/printer/testdata/statements.input

    
    func _() {
    	for {
    		goto L
    	}
    L:
    
    	MoreCode()
    }
    
    
    func _() {
    	for {
    		goto L
    	}
    L:	// A comment on the same line as the label, followed by a single empty line.
    	// Known bug: There may be more than one empty line before MoreCode()
    	//            (see go/printer/nodes.go, func linebreak).
    
    
    
    
    	MoreCode()
    }
    
    
    func _() {
    	for {
    		goto L
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 8.3K bytes
    - Viewed (0)
  6. src/encoding/hex/hex.go

    func DecodedLen(x int) int { return x / 2 }
    
    // Decode decodes src into [DecodedLen](len(src)) bytes,
    // returning the actual number of bytes written to dst.
    //
    // Decode expects that src contains only hexadecimal
    // characters and that src has even length.
    // If the input is malformed, Decode returns the number
    // of bytes decoded before the error.
    func Decode(dst, src []byte) (int, error) {
    	i, j := 0, 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:30:23 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. pkg/kubelet/kubeletconfig/util/codec/codec.go

    	obj, gvk, err := kubeletCodecs.UniversalDecoder().Decode(data, nil, nil)
    	if err != nil {
    		// Try strict decoding first. If that fails decode with a lenient
    		// decoder, which has only v1beta1 registered, and log a warning.
    		// The lenient path is to be dropped when support for v1beta1 is dropped.
    		if !runtime.IsStrictDecodingError(err) {
    			return nil, fmt.Errorf("failed to decode: %w", err)
    		}
    
    		var lenientErr error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 21:48:29 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  8. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/conn/IdnDnsResolver.java

        }
    
        protected String decode(final String host) {
            if (host.indexOf('%') == -1) {
                return host;
            }
            try {
                return URLDecoder.decode(host, encoding);
            } catch (final UnsupportedEncodingException e) {
                return host;
            }
        }
    
        protected String toAscii(final String host) {
            return IDN.toASCII(decode(host), flag);
        }
    
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. src/image/jpeg/fuzz_test.go

    			return
    		}
    		img, typ, err := image.Decode(bytes.NewReader(b))
    		if err != nil || typ != "jpeg" {
    			return
    		}
    		for q := 1; q <= 100; q++ {
    			var w bytes.Buffer
    			err := Encode(&w, img, &Options{Quality: q})
    			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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 15:56:27 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. 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)
Back to top