Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for break (0.14 sec)

  1. misc/wasm/wasm_exec.js

    				switch (typeof v) {
    					case "object":
    						if (v !== null) {
    							typeFlag = 1;
    						}
    						break;
    					case "string":
    						typeFlag = 2;
    						break;
    					case "symbol":
    						typeFlag = 3;
    						break;
    					case "function":
    						typeFlag = 4;
    						break;
    				}
    				this.mem.setUint32(addr + 4, nanHead | typeFlag, true);
    				this.mem.setUint32(addr, id, true);
    			}
    
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  2. src/bytes/buffer_test.go

    func empty(t *testing.T, testname string, buf *Buffer, s string, fub []byte) {
    	check(t, testname+" (empty 1)", buf, s)
    
    	for {
    		n, err := buf.Read(fub)
    		if n == 0 {
    			break
    		}
    		if err != nil {
    			t.Errorf(testname+" (empty 2): err should always be nil, found err == %s", err)
    		}
    		s = s[n:]
    		check(t, testname+" (empty 3)", buf, s)
    	}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  3. src/cmd/cgo/ast.go

    			ExpName: name,
    			Doc:     doc,
    		})
    		break
    	}
    }
    
    // Make f.ExpFunc[i] point at the Func from this AST instead of the other one.
    func (f *File) saveExport2(x interface{}, context astContext) {
    	n, ok := x.(*ast.FuncDecl)
    	if !ok {
    		return
    	}
    
    	for _, exp := range f.ExpFunc {
    		if exp.Func.Name.Name == n.Name.Name {
    			exp.Func = n
    			break
    		}
    	}
    }
    
    type astContext int
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/testdata/mips64.s

    //		outcode(int($1), &nullgen, 0, &$3);
    //	}
    	NOP	F2
    
    //	LNOP imm
    //	{
    //		outcode(int($1), &$2, 0, &nullgen);
    //	}
    	NOP	$4
    
    //
    // special
    //
    	SYSCALL
    	BREAK
    	// overloaded cache opcode:
    	BREAK	R1, (R1)
    
    //
    // RET
    //
    //	LRETRN	comma // asm doesn't support the trailing comma.
    //	{
    //		outcode(int($1), &nullgen, 0, &nullgen);
    //	}
    	SYSCALL
    	BEQ	R1, 2(PC)
    	RET
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 08 12:17:12 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  5. src/bufio/scan.go

    			if n < 0 || len(s.buf)-s.end < n {
    				s.setErr(ErrBadReadCount)
    				break
    			}
    			s.end += n
    			if err != nil {
    				s.setErr(err)
    				break
    			}
    			if n > 0 {
    				s.empties = 0
    				break
    			}
    			loop++
    			if loop > maxConsecutiveEmptyReads {
    				s.setErr(io.ErrNoProgress)
    				break
    			}
    		}
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  6. src/bytes/bytes.go

    	for len(s) > 0 {
    		if !as.contains(s[len(s)-1]) {
    			break
    		}
    		s = s[:len(s)-1]
    	}
    	return s
    }
    
    func trimRightUnicode(s []byte, cutset string) []byte {
    	for len(s) > 0 {
    		r, n := rune(s[len(s)-1]), 1
    		if r >= utf8.RuneSelf {
    			r, n = utf8.DecodeLastRune(s)
    		}
    		if !containsRune(cutset, r) {
    			break
    		}
    		s = s[:len(s)-n]
    	}
    	return s
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/lex/input.go

    		acceptArg := true
    		args = []string{} // Zero length but not nil.
    	Loop:
    		for {
    			tok = in.Stack.Next()
    			switch tok {
    			case ')':
    				tok = in.Stack.Next() // First token of macro definition.
    				break Loop
    			case ',':
    				if acceptArg {
    					in.Error("bad syntax in definition for macro:", name)
    				}
    				acceptArg = true
    			case scanner.Ident:
    				if !acceptArg {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  8. src/archive/tar/reader_test.go

    				if err != nil {
    					if err == io.EOF {
    						err = nil // Expected error
    					}
    					break
    				}
    				hdrs = append(hdrs, hdr)
    
    				if v.chksums == nil {
    					continue
    				}
    				h := md5.New()
    				_, err = io.CopyBuffer(h, tr, rdbuf) // Effectively an incremental read
    				if err != nil {
    					break
    				}
    				chksums = append(chksums, fmt.Sprintf("%x", h.Sum(nil)))
    			}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  9. doc/godebug.md

    Go's emphasis on backwards compatibility is one of its key strengths.
    There are, however, times when we cannot maintain complete compatibility.
    If code depends on buggy (including insecure) behavior,
    then fixing the bug will break that code.
    New features can also have similar impacts:
    enabling the HTTP/2 use by the HTTP client broke programs
    connecting to servers with buggy HTTP/2 implementations.
    These kinds of changes are unavoidable and
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  10. src/archive/zip/reader.go

    	// the file count modulo 65536 is incorrect.
    	for {
    		f := &File{zip: r, zipr: rdr}
    		err = readDirectoryHeader(f, buf)
    		if err == ErrFormat || err == io.ErrUnexpectedEOF {
    			break
    		}
    		if err != nil {
    			return err
    		}
    		f.headerOffset += r.baseOffset
    		r.File = append(r.File, f)
    	}
    	if uint16(len(r.File)) != uint16(end.directoryRecords) { // only compare 16 bits here
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
Back to top