Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for checkSize (0.4 sec)

  1. src/cmd/compile/internal/typecheck/typecheck.go

    		switch t.Kind() {
    		case types.TFUNC, // might have TANY; wait until it's called
    			types.TANY, types.TFORW, types.TIDEAL, types.TNIL, types.TBLANK:
    			break
    
    		default:
    			types.CheckSize(t)
    		}
    	}
    
    	return n
    }
    
    // indexlit implements typechecking of untyped values as
    // array/slice indexes. It is almost equivalent to DefaultLit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/data.go

    	// we skip size comparison and do the name comparison instead
    	// (conveniently, .got sorts before .toc).
    	checkSize := symn != sym.SELFGOT
    
    	for k, s := range syms {
    		ss := ldr.SymSize(s)
    		sl[k] = symNameSize{sz: ss, sym: s}
    		if !checkSize {
    			sl[k].name = ldr.SymName(s)
    		}
    		ds := int64(len(ldr.Data(s)))
    		switch {
    		case ss < ds:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (0)
  3. src/cmd/go/internal/cache/cache_test.go

    	entry, _ := c.Get(id)
    	PutBytes(c, ActionID(dummyID(2)), []byte("def"))
    	mtime := now
    	checkTime(fmt.Sprintf("%x-a", id), mtime)
    	checkTime(fmt.Sprintf("%x-d", entry.OutputID), mtime)
    
    	// Get should not change recent mtimes.
    	now = start + 10
    	c.Get(id)
    	checkTime(fmt.Sprintf("%x-a", id), mtime)
    	checkTime(fmt.Sprintf("%x-d", entry.OutputID), mtime)
    
    	// Get should change distant mtimes.
    	now = start + 5000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:49:37 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/FileAttributesTest.java

                  SmbFile checkFile = new SmbFile(f.getCanonicalPath(), f.getContext()) ) {
    
                try {
                    assertTrue(checkFile.exists());
                }
                finally {
                    ostream.close();
                    checkFile.close();
                    f.delete();
                }
            }
        }
    
    
        /**
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_fuzz_minimize_dirty_cov.txt

    			return
    		}
    	})
    }
    
    -- check_file/main.go --
    package main
    
    import (
    	"bytes"
    	"fmt"
    	"os"
    	"path/filepath"
    	"regexp"
    	"strconv"
    )
    
    func checkFile(name, expected string) (bool, error) {
    	data, err := os.ReadFile(name)
    	if err != nil {
    		return false, err
    	}
    	for _, line := range bytes.Split(data, []byte("\n")) {
    		m := valRe.FindSubmatch(line)
    		if m == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag_old.go

    		}
    		if !bytes.Contains(line, []byte("+build")) {
    			continue
    		}
    		if err := checkLine(string(line), i >= cutoff); err != nil {
    			pass.Reportf(analysisutil.LineStart(tf, i+1), "%s", err)
    			continue
    		}
    	}
    	return nil
    }
    
    // checkLine checks a line that starts with "//" and contains "+build".
    func checkLine(line string, pastCutoff bool) error {
    	line = strings.TrimPrefix(line, "//")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/EnumMultiset.java

      }
    
      /**
       * Returns {@code element} cast to {@code E}, if it actually is a nonnull E. Otherwise, throws
       * either a NullPointerException or a ClassCastException as appropriate.
       */
      private void checkIsE(Object element) {
        checkNotNull(element);
        if (!isActuallyE(element)) {
          throw new ClassCastException("Expected an " + type + " but got " + element);
        }
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/EnumMultiset.java

      }
    
      /**
       * Returns {@code element} cast to {@code E}, if it actually is a nonnull E. Otherwise, throws
       * either a NullPointerException or a ClassCastException as appropriate.
       */
      private void checkIsE(Object element) {
        checkNotNull(element);
        if (!isActuallyE(element)) {
          throw new ClassCastException("Expected an " + type + " but got " + element);
        }
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. src/crypto/internal/boring/build-goboring.sh

    # Also collect list of checked symbols in syms.txt
    set -e
    cd /boring/godriver
    cat >goboringcrypto.cc <<'EOF'
    #include <cassert>
    #include "goboringcrypto0.h"
    #include "goboringcrypto1.h"
    #define check_size(t) if(sizeof(t) != sizeof(GO_ ## t)) {printf("sizeof(" #t ")=%d, but sizeof(GO_" #t ")=%d\n", (int)sizeof(t), (int)sizeof(GO_ ## t)); ret=1;}
    #define check_func(f) { auto x = f; x = _goboringcrypto_ ## f ; }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. pkg/kubeapiserver/authorizer/reload.go

    	filesystem.WatchUntil(
    		ctx,
    		r.reloadInterval,
    		r.initialConfig.ReloadFile,
    		func() {
    			r.checkFile(ctx)
    		},
    		func(err error) {
    			klog.ErrorS(err, "watching authorization config file")
    		},
    	)
    }
    
    func (r *reloadableAuthorizerResolver) checkFile(ctx context.Context) {
    	r.lastLoadedLock.Lock()
    	defer r.lastLoadedLock.Unlock()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top