Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for Treat (0.32 sec)

  1. src/cmd/cgo/godefs.go

    	override := make(map[string]string)
    
    	// Allow source file to specify override mappings.
    	// For example, the socket data structures refer
    	// to in_addr and in_addr6 structs but we want to be
    	// able to treat them as byte arrays, so the godefs
    	// inputs in package syscall say
    	//
    	//	// +godefs map struct_in_addr [4]byte
    	//	// +godefs map struct_in_addr6 [16]byte
    	//
    	for _, g := range f.Comments {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  2. src/bytes/bytes.go

    		case r == '_':
    			return false
    		}
    		return true
    	}
    	// Letters and digits are not separators
    	if unicode.IsLetter(r) || unicode.IsDigit(r) {
    		return false
    	}
    	// Otherwise, all we can do for now is treat spaces as separators.
    	return unicode.IsSpace(r)
    }
    
    // Title treats s as UTF-8-encoded bytes and returns a copy with all Unicode letters that begin
    // words mapped to their title case.
    //
    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)
  3. src/archive/tar/format.go

    // signed byte values.
    // We compute and return both.
    func (b *block) computeChecksum() (unsigned, signed int64) {
    	for i, c := range b {
    		if 148 <= i && i < 156 {
    			c = ' ' // Treat the checksum field itself as all spaces.
    		}
    		unsigned += int64(c)
    		signed += int64(int8(c))
    	}
    	return unsigned, signed
    }
    
    // reset clears the block with all zeros.
    func (b *block) reset() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  4. api/go1.1.txt

    pkg syscall (darwin-386), const O_APPEND = 8
    pkg syscall (darwin-386), const O_ASYNC = 64
    pkg syscall (darwin-386), const O_CLOEXEC = 16777216
    pkg syscall (darwin-386), const O_CREAT = 512
    pkg syscall (darwin-386), const O_DIRECTORY = 1048576
    pkg syscall (darwin-386), const O_DSYNC = 4194304
    pkg syscall (darwin-386), const O_EVTONLY = 32768
    pkg syscall (darwin-386), const O_EXCL = 2048
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  5. src/archive/tar/strconv.go

    func (f *formatter) formatString(b []byte, s string) {
    	if len(s) > len(b) {
    		f.err = ErrFieldTooLong
    	}
    	copy(b, s)
    	if len(s) < len(b) {
    		b[len(s)] = 0
    	}
    
    	// Some buggy readers treat regular files with a trailing slash
    	// in the V7 path field as a directory even though the full path
    	// recorded elsewhere (e.g., via PAX record) contains no trailing slash.
    	if len(s) > len(b) && b[len(b)-1] == '/' {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  6. .gitattributes

    # Treat all files in the Go repo as binary, with no git magic updating
    # line endings. This produces predictable results in different environments.
    #
    # Windows users contributing to Go will need to use a modern version
    # of git and editors capable of LF line endings.
    #
    # Windows .bat files are known to have multiple bugs when run with LF
    # endings, and so they are checked in with CRLF endings, with a test
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jun 08 15:31:43 GMT 2020
    - 639 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/issue1435.go

    		tf := fmt.Sprintf("/proc/%s/status", f.Name())
    		d, err := os.ReadFile(tf)
    		if err != nil {
    			// There are a surprising number of ways this
    			// can error out on linux.  We've seen all of
    			// the following, so treat any error here as
    			// equivalent to the "process is gone":
    			//    os.IsNotExist(err),
    			//    "... : no such process",
    			//    "... : bad file descriptor.
    			continue
    		}
    		lines := strings.Split(string(d), "\n")
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  8. src/cmd/cgo/gcc.go

    		if c.badPointerTypedef(dt) {
    			// Treat this typedef as a uintptr.
    			s := *sub
    			s.Go = c.uintptr
    			s.BadPointer = true
    			sub = &s
    			// Make sure we update any previously computed type.
    			if oldType := typedef[name.Name]; oldType != nil {
    				oldType.Go = sub.Go
    				oldType.BadPointer = true
    			}
    		}
    		if c.badVoidPointerTypedef(dt) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  9. src/cmd/cgo/doc.go

    is okay, because cmd/link also processes the cgo_import_static directive and
    knows that _cgo_gcc_Cfunc_sin is expected to be supplied by a host
    object file, so cmd/link does not treat the missing symbol as an error when
    creating go.o. Indeed, the definition for _cgo_gcc_Cfunc_sin will be
    provided to the host linker by foo2.cgo.o, which in turn will need the
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  10. src/archive/zip/reader_test.go

    		t.Fatal(err)
    	}
    	_, err = io.ReadAll(r)
    	if err != io.ErrUnexpectedEOF {
    		t.Errorf("File[0] error = %v; want io.ErrUnexpectedEOF", err)
    	}
    	r.Close()
    }
    
    // Verify we do not treat non-zip64 archives as zip64
    func TestIssue12449(t *testing.T) {
    	data := []byte{
    		0x50, 0x4b, 0x03, 0x04, 0x14, 0x00, 0x08, 0x00,
    		0x00, 0x00, 0x6b, 0xb4, 0xba, 0x46, 0x00, 0x00,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
Back to top