Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for Harper (0.21 sec)

  1. 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)
  2. src/cmd/cgo/doc.go

    decide which.
    
    The obvious thing for cgo to do is to process the preamble, expanding
    #includes and processing the corresponding C code. That would require
    a full C parser and type checker that was also aware of any extensions
    known to the system compiler (for example, all the GNU C extensions) as
    well as the system-specific header locations and system-specific
    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. doc/go1.17_spec.html

    If both <code>n</code> and <code>m</code> are provided and are constant, then
    <code>n</code> must be no larger than <code>m</code>.
    If <code>n</code> is negative or larger than <code>m</code> at run time,
    a <a href="#Run_time_panics">run-time panic</a> occurs.
    </p>
    
    <pre>
    s := make([]int, 10, 100)       // slice with len(s) == 10, cap(s) == 100
    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/cmd/asm/internal/asm/parse.go

    	return tok
    }
    
    func (p *Parser) back() {
    	if p.inputPos == 0 {
    		p.errorf("internal error: backing up before BOL")
    	} else {
    		p.inputPos--
    	}
    }
    
    func (p *Parser) peek() lex.ScanToken {
    	if p.more() {
    		return p.input[p.inputPos].ScanToken
    	}
    	return scanner.EOF
    }
    
    func (p *Parser) more() bool {
    	return p.inputPos < len(p.input)
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/line_test.go

    	for i, test := range tests {
    		arch, ctxt := setArch(goarch)
    		tokenizer := lex.NewTokenizer("", strings.NewReader(test.input+"\n"), nil)
    		parser := NewParser(ctxt, arch, tokenizer)
    
    		err := tryParse(t, func() {
    			parser.Parse()
    		})
    
    		switch {
    		case err == nil:
    			t.Errorf("#%d: %q: want error %q; have none", i, test.input, test.error)
    		case !strings.Contains(err.Error(), test.error):
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  6. src/bytes/bytes.go

    	n := len(b) * count
    
    	if len(b) == 0 {
    		return []byte{}
    	}
    
    	// Past a certain chunk size it is counterproductive to use
    	// larger chunks as the source of the write, as when the source
    	// is too large we are basically just thrashing the CPU D-cache.
    	// So if the result length is larger than an empirically-found
    	// limit (8KB), we stop growing the source string once the limit
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  7. src/archive/zip/zip_test.go

    }
    
    func TestZip64EdgeCase(t *testing.T) {
    	if testing.Short() {
    		t.Skip("slow test; skipping")
    	}
    	t.Parallel()
    	// Test a zip file with uncompressed size 0xFFFFFFFF.
    	// That's the magic marker for a 64-bit file, so even though
    	// it fits in a 32-bit field we must use the 64-bit field.
    	// Go 1.5 and earlier got this wrong,
    	// writing an invalid zip file.
    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)
  8. doc/go_spec.html

    If both <code>n</code> and <code>m</code> are provided and are constant, then
    <code>n</code> must be no larger than <code>m</code>.
    For slices and channels, if <code>n</code> is negative or larger than <code>m</code> at run time,
    a <a href="#Run_time_panics">run-time panic</a> occurs.
    </p>
    
    <pre>
    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)
  9. api/go1.1.txt

    pkg go/format, func Source([]uint8) ([]uint8, error)
    pkg go/parser, const AllErrors = 32
    pkg go/parser, const AllErrors Mode
    pkg go/parser, const DeclarationErrors = 16
    pkg go/parser, const ImportsOnly = 2
    pkg go/parser, const PackageClauseOnly = 1
    pkg go/parser, const ParseComments = 4
    pkg go/parser, const SpuriousErrors = 32
    pkg go/parser, const Trace = 8
    pkg go/printer, const RawFormat = 1
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/asm.go

    	}
    	return true
    }
    
    // evalInteger evaluates an integer constant for a pseudo-op.
    func (p *Parser) evalInteger(pseudo string, operands []lex.Token) int64 {
    	addr := p.address(operands)
    	return p.getConstantPseudo(pseudo, &addr)
    }
    
    // validImmediate checks that addr represents an immediate constant.
    func (p *Parser) validImmediate(pseudo string, addr *obj.Addr) bool {
    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