Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 629 for reencode (0.15 sec)

  1. guava/src/com/google/common/hash/Hasher.java

      @Override
      Hasher putUnencodedChars(CharSequence charSequence);
    
      /**
       * Equivalent to {@code putBytes(charSequence.toString().getBytes(charset))}.
       *
       * <p><b>Warning:</b> This method, which reencodes the input before hashing it, is useful only for
       * cross-language compatibility. For other use cases, prefer {@link #putUnencodedChars}, which is
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  2. src/internal/profile/profile.go

    	if err := p.postDecode(); err != nil {
    		return nil, err
    	}
    
    	return p, nil
    }
    
    // Write writes the profile as a gzip-compressed marshaled protobuf.
    func (p *Profile) Write(w io.Writer) error {
    	p.preEncode()
    	b := marshal(p)
    	zw := gzip.NewWriter(w)
    	defer zw.Close()
    	_, err := zw.Write(b)
    	return err
    }
    
    // CheckValid tests whether the profile is valid. Checks include, but are
    // not limited to:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 17:57:40 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. operator/pkg/translate/translate.go

    }
    
    // setYAMLNodeByMapPath sets the value at the given path to val in treeNode. The path cannot traverse lists and
    // treeNode must be a YAML tree unmarshaled into a plain map data structure.
    func setYAMLNodeByMapPath(treeNode any, path util.Path, val any) {
    	if len(path) == 0 || treeNode == nil {
    		return
    	}
    	pe := path[0]
    	switch nt := treeNode.(type) {
    	case map[any]any:
    		if len(path) == 1 {
    			nt[pe] = val
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 19:43:09 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/response_test.go

    	m.gvk = gvk
    }
    
    // CacheEncode implements runtime.CacheableObject interface.
    func (m *mockCacheableObject) CacheEncode(id runtime.Identifier, encode func(runtime.Object, io.Writer) error, w io.Writer) error {
    	return encode(m.obj.DeepCopyObject(), w)
    }
    
    // GetObject implements runtime.CacheableObject interface.
    func (m *mockCacheableObject) GetObject() runtime.Object {
    	return m.obj
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 09:07:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  5. operator/pkg/tpath/tree.go

    		return nil, err
    	}
    	return out, nil
    }
    
    // find returns the value at path from the given tree, or false if the path does not exist.
    func find(treeNode any, path util.Path) (any, bool) {
    	if len(path) == 0 || treeNode == nil {
    		return nil, false
    	}
    	switch nt := treeNode.(type) {
    	case map[any]any:
    		val := nt[path[0]]
    		if val == nil {
    			return nil, false
    		}
    		if len(path) == 1 {
    			return val, true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    	nodes, locationMap := CreateNodes(prof, o)
    	seenNode := make(map[*Node]bool)
    	seenEdge := make(map[nodePair]bool)
    	for _, sample := range prof.Sample {
    		var w, dw int64
    		w = o.SampleValue(sample.Value)
    		if o.SampleMeanDivisor != nil {
    			dw = o.SampleMeanDivisor(sample.Value)
    		}
    		if dw == 0 && w == 0 {
    			continue
    		}
    		for k := range seenNode {
    			delete(seenNode, k)
    		}
    		for k := range seenEdge {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
  7. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/report/HtmlPageGenerator.java

                } else {
                    td().text("").end();
                    td().text("").end();
                }
            }
        }
    
        protected String urlEncode(String str) {
            try {
                return URLEncoder.encode(str, Charsets.UTF_8.name());
            } catch (UnsupportedEncodingException e) {
                throw new RuntimeException(e);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testerrors/testdata/issue42580.go

    func TestSingleArgumentCast() C.int {
    	retcode := C.func_with_char((*C.char)(unsafe.Pointer(&checkedPointer[0])), unsafe.Pointer(C.strarg))
    	return retcode
    }
    
    func TestSingleArgumentCastRecFuncAsSimpleArg() C.int {
    	retcode := C.func_with_char((*C.char)(unsafe.Pointer(C.get_arr((*C.char)(unsafe.Pointer(&singleInnerPointerChecked[0])), unsafe.Pointer(C.strarg)))), nil)
    	return retcode
    }
    
    func TestSingleArgumentCastRecFunc() C.int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/PermissionHelperTest.java

        public void test_encode() {
            assertNull(permissionHelper.encode(null));
            assertNull(permissionHelper.encode(""));
            assertNull(permissionHelper.encode(" "));
            assertNull(permissionHelper.encode("{user}"));
            assertNull(permissionHelper.encode("{role}"));
            assertNull(permissionHelper.encode("{group}"));
            assertNull(permissionHelper.encode("(allow)"));
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/AbstractCodecTest.groovy

            thrown(EOFException)
        }
    
        def "cannot encode a null string"() {
            when:
            encode { Encoder encoder ->
                encoder.writeString(null)
            }
    
            then:
            thrown(IllegalArgumentException)
        }
    
        def "can encode and decode a nullable string"() {
            expect:
            def bytes = encode { Encoder encoder ->
                encoder.writeNullableString(value)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 14.9K bytes
    - Viewed (0)
Back to top