Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 104 for Mack (0.14 sec)

  1. internal/bpool/bpool.go

    	}
    	return
    }
    
    // Put returns the given Buffer to the BytePool.
    func (bp *BytePoolCap) Put(b []byte) {
    	if bp == nil {
    		return
    	}
    	select {
    	case bp.c <- b:
    		// buffer went back into pool
    	default:
    		// buffer didn't go back into pool, just discard
    	}
    }
    
    // Width returns the width of the byte arrays in this pool.
    func (bp *BytePoolCap) Width() (n int) {
    	if bp == nil {
    		return 0
    	}
    	return bp.w
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  2. misc/cgo/gmp/fib.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    // Compute Fibonacci numbers with two goroutines
    // that pass integers back and forth.  No actual
    // concurrency, just threads and synchronization
    // and foreign code on multiple pthreads.
    
    package main
    
    import (
    	big "."
    	"runtime"
    )
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 10 22:32:35 GMT 2023
    - 919 bytes
    - Viewed (0)
  3. cmd/leak-detect_test.go

    	if t.Failed() {
    		return
    	}
    	// Loop, waiting for goroutines to shut down.
    	// Wait up to 5 seconds, but finish as quickly as possible.
    	deadline := UTCNow().Add(leakDetectDeadline * time.Second)
    	for {
    		// get sack snapshot of relevant go routines.
    		leaked := initialSnapShot.CompareCurrentSnapshot()
    		// current stack snapshot matches the initial one, no leaks, return.
    		if len(leaked) == 0 {
    			return
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  4. src/bufio/example_test.go

    }
    
    // The simplest use of a Scanner, to read standard input as a set of lines.
    func ExampleScanner_lines() {
    	scanner := bufio.NewScanner(os.Stdin)
    	for scanner.Scan() {
    		fmt.Println(scanner.Text()) // Println will add back the final '\n'
    	}
    	if err := scanner.Err(); err != nil {
    		fmt.Fprintln(os.Stderr, "reading standard input:", err)
    	}
    }
    
    // Return the most recent call to Scan as a []byte.
    func ExampleScanner_Bytes() {
    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)
  5. operator/cmd/mesh/profile-dump.go

    		decoded = map[string]any{}
    	}
    	if err := json.Unmarshal(uglyJSON, &decoded); err != nil {
    		return []string{}, err
    	}
    	if d, ok := decoded.(map[string]any); ok {
    		if v, ok := d["spec"]; ok {
    			// Fall back to showing the entire spec.
    			// (When --config-path is used there will be no spec to remove)
    			decoded = v
    		}
    	}
    	setflags, err := walk("", "", decoded)
    	if err != nil {
    		return []string{}, err
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  6. cmd/metacache-entries.go

    	if !isXL2V1Format(e.metadata) {
    		return false
    	}
    	if meta, _, err := isIndexedMetaV2(e.metadata); meta != nil {
    		return meta.IsLatestDeleteMarker()
    	} else if err != nil {
    		return true
    	}
    	// Fall back...
    	xlMeta, err := e.xlmeta()
    	if err != nil || len(xlMeta.versions) == 0 {
    		return true
    	}
    	return xlMeta.versions[0].header.Type == DeleteType
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  7. cmd/peer-rest-server.go

    		}
    		if err != nil {
    			return np, grid.NewRemoteErr(err)
    		}
    	default:
    		return np, grid.NewRemoteErr(errUnsupportedSignal)
    	}
    	return np, nil
    }
    
    // ListenHandler sends http trace messages back to peer rest client
    func (s *peerRESTServer) ListenHandler(ctx context.Context, v *grid.URLValues, out chan<- *grid.Bytes) *grid.RemoteErr {
    	values := v.Values()
    	defer v.Recycle()
    	var prefix string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  8. src/archive/zip/struct.go

    type FileHeader struct {
    	// Name is the name of the file.
    	//
    	// It must be a relative path, not start with a drive letter (such as "C:"),
    	// and must use forward slashes instead of back slashes. A trailing slash
    	// indicates that this file is a directory and should have no data.
    	Name string
    
    	// Comment is any arbitrary user-defined string shorter than 64KiB.
    	Comment string
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  9. cmd/test-utils_test.go

    	req.Header.Set("content-encoding", "aws-chunked")
    	req.Header.Set("x-amz-decoded-content-length", strconv.FormatInt(dataLength, 10))
    	req.Header.Set("content-length", strconv.FormatInt(contentLength, 10))
    
    	// Seek back to beginning.
    	body.Seek(0, 0)
    
    	// Add body
    	req.Body = io.NopCloser(body)
    	req.ContentLength = contentLength
    
    	return req, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  10. cmd/object-api-utils.go

    			decLength = length
    			length = oi.Size - off
    			// For negative length we read everything.
    			if decLength < 0 {
    				decLength = actualSize - decOff
    			}
    
    			// Reply back invalid range if the input offset and length fall out of range.
    			if decOff > actualSize || decOff+decLength > actualSize {
    				return nil, 0, 0, errInvalidRange
    			}
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
Back to top