Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for created (0.15 sec)

  1. src/archive/zip/reader_test.go

    	// Also check that an archive containing a handful of empty
    	// files doesn't cause an issue
    	b := bytes.NewBuffer(nil)
    	w := NewWriter(b)
    	for i := 0; i < 5; i++ {
    		_, err := w.Create("")
    		if err != nil {
    			t.Fatalf("Writer.Create failed: %s", err)
    		}
    	}
    	if err := w.Close(); err != nil {
    		t.Fatalf("Writer.Close failed: %s", err)
    	}
    	r, err := NewReader(bytes.NewReader(b.Bytes()), int64(b.Len()))
    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/bufio/bufio_test.go

    			return
    		}
    	}
    }
    
    func createTestInput(n int) []byte {
    	input := make([]byte, n)
    	for i := range input {
    		// 101 and 251 are arbitrary prime numbers.
    		// The idea is to create an input sequence
    		// which doesn't repeat too frequently.
    		input[i] = byte(i % 251)
    		if i%101 == 0 {
    			input[i] ^= byte(i / 101)
    		}
    	}
    	return input
    }
    
    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)
  3. src/cmd/asm/internal/asm/testdata/arm.s

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This input was created by taking the instruction productions in
    // the old assembler's (5a's) grammar and hand-writing complete
    // instructions for each rule, to guarantee we cover the same space.
    
    #include "../../../../../runtime/textflag.h"
    
    TEXT	foo(SB), DUPOK|NOSPLIT, $0
    
    // ADD
    //
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 15 20:51:01 GMT 2023
    - 69K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/testdata/arm64.s

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This input was created by taking the instruction productions in
    // the old assembler's (7a's) grammar and hand-writing complete
    // instructions for each rule, to guarantee we cover the same space.
    
    #include "../../../../../runtime/textflag.h"
    
    TEXT	foo(SB), DUPOK|NOSPLIT, $-8
    
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 08 03:28:17 GMT 2023
    - 94.9K bytes
    - Viewed (0)
  5. src/cmd/cgo/gcc.go

    // rewritten to use _cgo_unsafe.Pointer instead.
    func (p *Package) rewriteUnsafe(t ast.Expr) ast.Expr {
    	switch t := t.(type) {
    	case *ast.Ident:
    		// We don't see a SelectorExpr for unsafe.Pointer;
    		// this is created by code in this file.
    		if t.Name == "unsafe.Pointer" {
    			return ast.NewIdent("_cgo_unsafe.Pointer")
    		}
    	case *ast.ArrayType:
    		t1 := p.rewriteUnsafe(t.Elt)
    		if t1 != t.Elt {
    			r := *t
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top