Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 59 for stringify (0.22 sec)

  1. src/internal/trace/oldtrace.go

    	}
    	var addErr error
    	add := func(id stringID, s string) {
    		if err := evt.strings.insert(id, s); err != nil && addErr == nil {
    			addErr = err
    		}
    	}
    	for id, s := range pr.InlineStrings {
    		nid := max + 1 + uint64(id)
    		it.inlineToStringID = append(it.inlineToStringID, nid)
    		add(stringID(nid), s)
    	}
    	max += uint64(len(pr.InlineStrings))
    	pr.InlineStrings = nil
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. src/internal/trace/base.go

    type frequency float64
    
    // mul multiplies an unprocessed to produce a time in nanoseconds.
    func (f frequency) mul(t timestamp) Time {
    	return Time(float64(t) * float64(f))
    }
    
    // stringID is an index into the string table for a generation.
    type stringID uint64
    
    // extraStringID is an index into the extra string table for a generation.
    type extraStringID uint64
    
    // stackID is an index into the stack table for a generation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/diff/diff.go

    	"github.com/google/go-cmp/cmp"
    	"k8s.io/apimachinery/pkg/util/dump"
    )
    
    func legacyDiff(a, b interface{}) string {
    	return cmp.Diff(a, b)
    }
    
    // StringDiff diffs a and b and returns a human readable diff.
    // DEPRECATED: use github.com/google/go-cmp/cmp.Diff
    func StringDiff(a, b string) string {
    	return legacyDiff(a, b)
    }
    
    // ObjectDiff prints the diff of two go objects and fails if the objects
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:45:31 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/mutation/common/val.go

    	if mapOfVal, ok := value.Value().(map[ref.Val]ref.Val); ok {
    		result := make(map[string]any)
    		for k, v := range mapOfVal {
    			stringKey, ok := k.Value().(string)
    			if !ok {
    				return nil, fmt.Errorf("map key %q is of type %t, not string", k, k)
    			}
    			result[stringKey] = v.Value()
    		}
    		return result, nil
    	}
    	return value.Value(), nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 21:55:08 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. src/internal/pkgbits/encoder.go

    	// Write fingerprint.
    	copy(fingerprint[:], h.Sum(nil))
    	_, err := out0.Write(fingerprint[:])
    	assert(err == nil)
    
    	return
    }
    
    // StringIdx adds a string value to the strings section, if not
    // already present, and returns its index.
    func (pw *PkgEncoder) StringIdx(s string) Index {
    	if idx, ok := pw.stringsIdx[s]; ok {
    		assert(pw.elems[RelocString][idx] == s)
    		return idx
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 10 23:26:58 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  6. src/internal/trace/generation.go

    			}
    			frames = append(frames, pc)
    
    			if _, ok := pcs[pc]; !ok {
    				pcs[pc] = frame{
    					pc:     pc,
    					funcID: stringID(funcID),
    					fileID: stringID(fileID),
    					line:   line,
    				}
    			}
    		}
    
    		// Add the stack to the map.
    		if err := stackTable.insert(stackID(id), stack{pcs: frames}); err != nil {
    			return err
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 22:14:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/integTest/groovy/org/gradle/language/rc/WindowsResourcesIntegrationTest.groovy

                #include "resources.h"
    
                std::string LoadStringFromResource(UINT stringID)
                {
                    HMODULE instance = LoadLibraryEx("resources.dll", NULL, LOAD_LIBRARY_AS_DATAFILE);
                    WCHAR * pBuf = NULL;
                    int len = LoadStringW(instance, stringID, reinterpret_cast<LPWSTR>(&pBuf), 0);
                    std::wstring wide = std::wstring(pBuf, len);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/AbstractTypeMetadataWalker.java

                    checkNotNull(key, "Null keys in nested map '%s' are not allowed.", qualifiedName);
                    String stringKey = key.toString();
                    checkNotNullNestedCollectionValue(qualifiedName, stringKey, value);
                    handler.accept(stringKey, value);
                });
            }
    
            @SuppressWarnings("unchecked")
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 14K bytes
    - Viewed (0)
  9. src/internal/trace/traceviewer/static/webcomponents.min.js

    },elementFromPoint:function(e,t){return y(this,this,e,t)},importNode:function(e,t){return v(e,t,N(this))},getSelection:function(){return M(),new h(R.call(C(this)))},getElementsByName:function(e){return f.querySelectorAll.call(this,"[name="+JSON.stringify(String(e))+"]")}});var I=document.createTreeWalker,P=e.wrappers.TreeWalker;if(t.prototype.createTreeWalker=function(e,t,n,r){var o=null;return n&&(n.acceptNode&&"function"==typeof n.acceptNode?o={acceptNode:function(e){return n.acceptNode(j(e))}...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 115.6K bytes
    - Viewed (0)
  10. src/reflect/benchmark_test.go

    	uint64Keys := []uint64{}
    	mapOfUint64s := map[uint64]V{}
    	userStringKeys := []S{}
    	mapOfUserStrings := map[S]V{}
    	for i := 0; i < 100; i++ {
    		stringKey := fmt.Sprintf("key%d", i)
    		stringKeys = append(stringKeys, stringKey)
    		mapOfStrings[stringKey] = nil
    
    		uint64Key := uint64(i)
    		uint64Keys = append(uint64Keys, uint64Key)
    		mapOfUint64s[uint64Key] = nil
    
    		userStringKey := S(fmt.Sprintf("key%d", i))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Nov 19 17:09:03 UTC 2023
    - 8.8K bytes
    - Viewed (0)
Back to top