Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for hugger (0.22 sec)

  1. src/archive/zip/reader_test.go

    //			log.Fatal(err)
    //		}
    //
    //		biggerZip := makeZip("big.zip", bytes.NewReader(bigZip))
    //		if err := os.WriteFile("/tmp/bigger.zip", biggerZip, 0666); err != nil {
    //			log.Fatal(err)
    //		}
    //
    //		biggestZip := makeZip("bigger.zip", bytes.NewReader(biggerZip))
    //		if err := os.WriteFile("/tmp/biggest.zip", biggestZip, 0666); err != nil {
    //			log.Fatal(err)
    //		}
    //	}
    //
    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)
  2. src/bytes/buffer_test.go

    package bytes_test
    
    import (
    	. "bytes"
    	"fmt"
    	"internal/testenv"
    	"io"
    	"math/rand"
    	"strconv"
    	"testing"
    	"unicode/utf8"
    )
    
    const N = 10000       // make this bigger for a larger (and slower) test
    var testString string // test data for write tests
    var testBytes []byte  // test data; same as testString but as a slice.
    
    type negativeReader struct{}
    
    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. doc/go1.17_spec.html

    by any predeclared type in the language. The following are legal declarations:
    </p>
    
    <pre>
    const Huge = 1 &lt;&lt; 100         // Huge == 1267650600228229401496703205376  (untyped integer constant)
    const Four int8 = Huge &gt;&gt; 98  // Four == 4                                (type int8)
    </pre>
    
    <p>
    The divisor of a constant division or remainder operation must not be zero:
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  4. src/archive/zip/zip_test.go

    // 0xFFFFFFFF, but not before.
    func TestZip64DirectoryOffset(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping in short mode")
    	}
    	t.Parallel()
    	const filename = "huge.txt"
    	gen := func(wantOff uint64) func(*Writer) {
    		return func(w *Writer) {
    			w.testHookCloseSizeOffset = func(size, off uint64) {
    				if off != wantOff {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  5. doc/go_spec.html

    by any predeclared type in the language. The following are legal declarations:
    </p>
    
    <pre>
    const Huge = 1 &lt;&lt; 100         // Huge == 1267650600228229401496703205376  (untyped integer constant)
    const Four int8 = Huge &gt;&gt; 98  // Four == 4                                (type int8)
    </pre>
    
    <p>
    The divisor of a constant division or remainder operation must not be zero:
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  6. api/go1.21.txt

    pkg log/slog, method (*Logger) DebugContext(context.Context, string, ...interface{}) #61200
    pkg log/slog, method (*Logger) Debug(string, ...interface{}) #56345
    pkg log/slog, method (*Logger) Enabled(context.Context, Level) bool #56345
    pkg log/slog, method (*Logger) ErrorContext(context.Context, string, ...interface{}) #61200
    pkg log/slog, method (*Logger) Error(string, ...interface{}) #56345
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 07 09:39:17 GMT 2023
    - 25.6K bytes
    - Viewed (0)
  7. doc/godebug.md

    Go 1.22 changed how the runtime interacts with transparent huge pages on Linux.
    In particular, a common default Linux kernel configuration can result in
    significant memory overheads, and Go 1.22 no longer works around this default.
    To work around this issue without adjusting kernel settings, transparent huge
    pages can be disabled for Go memory with the
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  8. src/bytes/bytes_test.go

    			if pos != -1 {
    				t.Errorf("IndexByte(%q, 'x') = %v", b1, pos)
    			}
    		}
    	}
    }
    
    // test a small index across all page offsets
    func TestIndexByteSmall(t *testing.T) {
    	b := make([]byte, 5015) // bigger than a page
    	// Make sure we find the correct byte even when straddling a page.
    	for i := 0; i <= len(b)-15; i++ {
    		for j := 0; j < 15; j++ {
    			b[i+j] = byte(100 + j)
    		}
    		for j := 0; j < 15; j++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  9. doc/go1.22.html

      class boundaries of the memory allocator, so some objects may be moved up a size
      class.
    </p>
    <p>
      A consequence of this change is that some objects' addresses that were previously
      always aligned to a 16 byte (or higher) boundary will now only be aligned to an 8
      byte boundary.
      Some programs that use assembly instructions that require memory addresses to be
    HTML
    - Registered: Tue Feb 06 11:13:10 GMT 2024
    - Last Modified: Wed Jan 31 20:51:56 GMT 2024
    - 45.6K bytes
    - Viewed (0)
  10. src/bufio/scan_test.go

    	s.Split(c.split)
    	for s.Scan() {
    	}
    	if s.Err() != nil {
    		t.Fatal("after scan:", s.Err())
    	}
    	if c != 0 {
    		t.Fatalf("stopped with %d left to process", c)
    	}
    }
    
    // Make sure we can read a huge token if a big enough buffer is provided.
    func TestHugeBuffer(t *testing.T) {
    	text := strings.Repeat("x", 2*MaxScanTokenSize)
    	s := NewScanner(strings.NewReader(text + "\n"))
    	s.Buffer(make([]byte, 100), 3*MaxScanTokenSize)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
Back to top