Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for buffers (0.66 sec)

  1. src/cmd/compile/internal/types2/format.go

    			}
    			buf.WriteByte(']')
    			arg = buf.String()
    		case Object:
    			arg = ObjectString(a, qf)
    		case Type:
    			var buf bytes.Buffer
    			w := newTypeWriter(&buf, qf)
    			w.tpSubscripts = tpSubscripts
    			w.typ(a)
    			arg = buf.String()
    		case []Type:
    			var buf bytes.Buffer
    			w := newTypeWriter(&buf, qf)
    			w.tpSubscripts = tpSubscripts
    			buf.WriteByte('[')
    			for i, x := range a {
    				if i > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. src/cmd/go/internal/envcmd/env.go

    		if c == '\r' || c == '\n' || (!unicode.IsGraphic(rune(c)) && !unicode.IsSpace(rune(c))) {
    			return true
    		}
    	}
    	return false
    }
    
    func shellQuote(s string) string {
    	var b bytes.Buffer
    	b.WriteByte('\'')
    	for _, x := range []byte(s) {
    		if x == '\'' {
    			// Close the single quoted string, add an escaped single quote,
    			// and start another single quoted string.
    			b.WriteString(`'\''`)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  3. src/cmd/go/internal/cache/default.go

    	}
    }
    
    var (
    	defaultDirOnce    sync.Once
    	defaultDir        string
    	defaultDirChanged bool // effective value differs from $GOCACHE
    	defaultDirErr     error
    )
    
    // DefaultDir returns the effective GOCACHE setting.
    // It returns "off" if the cache is disabled,
    // and reports whether the effective value differs from GOCACHE.
    func DefaultDir() (string, bool) {
    	// Save the result of the first call to DefaultDir for later use in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/typestring.go

    // package-level objects, and may be nil.
    func TypeString(typ Type, qf Qualifier) string {
    	var buf bytes.Buffer
    	WriteType(&buf, typ, qf)
    	return buf.String()
    }
    
    // WriteType writes the string representation of typ to buf.
    // The [Qualifier] controls the printing of
    // package-level objects, and may be nil.
    func WriteType(buf *bytes.Buffer, typ Type, qf Qualifier) {
    	newTypeWriter(buf, qf).typ(typ)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. src/archive/tar/writer.go

    	w    io.Writer
    	pad  int64      // Amount of padding to write after current file entry
    	curr fileWriter // Writer for current file entry
    	hdr  Header     // Shallow copy of Header that is safe for mutations
    	blk  block      // Buffer to use as temporary local storage
    
    	// err is a persistent error.
    	// It is only the responsibility of every exported method of Writer to
    	// ensure that this error is sticky.
    	err error
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  6. src/cmd/cgo/gcc.go

    	}
    	p.rewriteRef(f)
    }
    
    // loadDefines coerces gcc into spitting out the #defines in use
    // in the file f and saves relevant renamings in f.Name[name].Define.
    func (p *Package) loadDefines(f *File) {
    	var b bytes.Buffer
    	b.WriteString(builtinProlog)
    	b.WriteString(f.Preamble)
    	stdout := p.gccDefines(b.Bytes())
    
    	for _, line := range strings.Split(stdout, "\n") {
    		if len(line) < 9 || line[0:7] != "#define" {
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  7. src/cmd/doc/main.go

    			return
    		}
    	}
    }
    
    // failMessage creates a nicely formatted error message when there is no result to show.
    func failMessage(paths []string, symbol, method string) error {
    	var b bytes.Buffer
    	if len(paths) > 1 {
    		b.WriteString("s")
    	}
    	b.WriteString(" ")
    	for i, path := range paths {
    		if i > 0 {
    			b.WriteString(", ")
    		}
    		b.WriteString(path)
    	}
    	if method == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. doc/go_spec.html

    make(chan int, 100)
    </pre>
    
    <p>
    The capacity, in number of elements, sets the size of the buffer in the channel.
    If the capacity is zero or absent, the channel is unbuffered and communication
    succeeds only when both a sender and receiver are ready. Otherwise, the channel
    is buffered and communication succeeds without blocking if the buffer
    is not full (sends) or not empty (receives).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
  9. src/cmd/go/internal/test/test.go

    }
    
    // runCache is the cache for running a single test.
    type runCache struct {
    	disableCache bool // cache should be disabled for this run
    
    	buf *bytes.Buffer
    	id1 cache.ActionID
    	id2 cache.ActionID
    }
    
    // stdoutMu and lockedStdout provide a locked standard output
    // that guarantees never to interlace writes from multiple
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/unify.go

    	tparams := make(typeParamsById, len(u.handles))
    	i := 0
    	for tpar := range u.handles {
    		tparams[i] = tpar
    		i++
    	}
    	sort.Sort(tparams)
    
    	var buf bytes.Buffer
    	w := newTypeWriter(&buf, nil)
    	w.byte('[')
    	for i, x := range tparams {
    		if i > 0 {
    			w.string(", ")
    		}
    		w.typ(x)
    		w.string(": ")
    		w.typ(u.at(x))
    	}
    	w.byte(']')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
Back to top