Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Reimplement (0.2 sec)

  1. src/bufio/example_test.go

    		fmt.Println(len(scanner.Bytes()) == 6)
    	}
    	if err := scanner.Err(); err != nil {
    		fmt.Fprintln(os.Stderr, "shouldn't see an error scanning a string")
    	}
    	// Output:
    	// true
    }
    
    // Use a Scanner to implement a simple word-count utility by scanning the
    // input as a sequence of space-delimited tokens.
    func ExampleScanner_words() {
    	// An artificial input source.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    system object code because cmd/link is not sophisticated enough to process
    the real code.
    
    The main benefits of this system are that cmd/link remains relatively simple
    (it does not need to implement a complete ELF and Mach-O linker) and
    that gcc is not needed after the package is compiled. For example,
    package net uses cgo for access to name resolution functions provided
    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)
  3. src/bufio/bufio_test.go

    		srcBuf.Reset()
    		src.Reset(srcBuf)
    		dstBuf.Reset()
    		io.Copy(dst, src)
    	}
    }
    
    func BenchmarkReaderCopyUnoptimal(b *testing.B) {
    	// Unoptimal case is where the underlying reader doesn't implement io.WriterTo
    	srcBuf := bytes.NewBuffer(make([]byte, 8192))
    	src := NewReader(onlyReader{srcBuf})
    	dstBuf := new(bytes.Buffer)
    	dst := onlyWriter{dstBuf}
    	for i := 0; i < b.N; i++ {
    		srcBuf.Reset()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  4. src/archive/tar/stat_unix.go

    			major := uint32((dev & 0x0000ff00) >> 8)
    			minor := uint32((dev & 0x000000ff) >> 0)
    			minor |= uint32((dev & 0xffff0000) >> 8)
    			h.Devmajor, h.Devminor = int64(major), int64(minor)
    		default:
    			// TODO: Implement solaris (see https://golang.org/issue/8106)
    		}
    	}
    	return nil
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/asm.go

    			prog.From = a[0]
    			if a[1].Type == obj.TYPE_REG {
    				prog.Reg = p.getRegister(prog, op, &a[1])
    			} else {
    				prog.AddRestSource(a[1])
    			}
    			prog.To = a[2]
    		default:
    			p.errorf("TODO: implement three-operand instructions for this architecture")
    			return
    		}
    	case 4:
    		if p.arch.Family == sys.ARM {
    			if arch.IsARMBFX(op) {
    				// a[0] and a[1] must be constants, a[2] and a[3] must be registers
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
Back to top