Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 123 for Next (0.18 sec)

  1. src/cmd/api/api_test.go

    		{
    			name: "contexts reconverging after api/next/* update",
    			features: []string{
    				"A",
    				"pkg syscall, type RawSockaddrInet6 struct",
    			},
    			required: []string{
    				"A",
    				"pkg syscall (darwin-amd64), type RawSockaddrInet6 struct", // api/go1.n.txt
    				"pkg syscall, type RawSockaddrInet6 struct",                // api/next/n.txt
    			},
    			ok:  true,
    			out: "",
    		},
    		{
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/lex/tokenizer.go

    }
    
    func (t *Tokenizer) Col() int {
    	return t.s.Pos().Column
    }
    
    func (t *Tokenizer) Next() ScanToken {
    	s := t.s
    	for {
    		t.tok = ScanToken(s.Scan())
    		if t.tok != scanner.Comment {
    			break
    		}
    		text := s.TokenText()
    		t.line += strings.Count(text, "\n")
    		if constraint.IsGoBuild(text) {
    			t.tok = BuildComment
    			break
    		}
    	}
    	switch t.tok {
    	case '\n':
    		t.line++
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Aug 04 20:35:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  3. src/bytes/buffer_test.go

    				// of length j at offset i and ask for
    				// Next(k), we get the right bytes.
    				buf := NewBuffer(b[0:j])
    				n, _ := buf.Read(tmp[0:i])
    				if n != i {
    					t.Fatalf("Read %d returned %d", i, n)
    				}
    				bb := buf.Next(k)
    				want := k
    				if want > j-i {
    					want = j - i
    				}
    				if len(bb) != want {
    					t.Fatalf("in %d,%d: len(Next(%d)) == %d", i, j, k, len(bb))
    				}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 20 01:07:29 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  4. src/bytes/buffer.go

    		b.lastRead = opRead
    	}
    	return n, nil
    }
    
    // Next returns a slice containing the next n bytes from the buffer,
    // advancing the buffer as if the bytes had been returned by [Buffer.Read].
    // If there are fewer than n bytes in the buffer, Next returns the entire buffer.
    // The slice is only valid until the next call to a read or write method.
    func (b *Buffer) Next(n int) []byte {
    	b.lastRead = opInvalid
    	m := b.Len()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  5. src/archive/tar/reader_test.go

    		tr := NewReader(&buf)
    		h, err := tr.Next()
    		if err != ErrInsecurePath {
    			t.Errorf("tr.Next for file %q: got err %v, want ErrInsecurePath", path, err)
    			continue
    		}
    		if h.Name != path {
    			t.Errorf("tr.Next for file %q: got name %q, want %q", path, h.Name, path)
    		}
    		// Error should not be sticky.
    		h, err = tr.Next()
    		if err != nil {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  6. src/cmd/cgo/doc.go

    struct with a field named "type", x._type accesses the field.
    C struct fields that cannot be expressed in Go, such as bit fields
    or misaligned data, are omitted in the Go struct, replaced by
    appropriate padding to reach the next field or the end of the struct.
    
    The standard C numeric types are available under the names
    C.char, C.schar (signed char), C.uchar (unsigned char),
    C.short, C.ushort (unsigned short), C.int, C.uint (unsigned int),
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/parse.go

    	}
    	tok = p.next()
    	if tok.ScanToken == '+' {
    		if p.next().ScanToken != scanner.Int {
    			return "", obj.ABI0, false
    		}
    		tok = p.next()
    	}
    	if tok.ScanToken != '(' {
    		return "", obj.ABI0, false
    	}
    	if reg := p.next(); reg.ScanToken != scanner.Ident || reg.String() != "SB" {
    		return "", obj.ABI0, false
    	}
    	if p.next().ScanToken != ')' || p.peek() != scanner.EOF {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  8. src/archive/tar/fuzz_test.go

    	f.Add(b.Bytes())
    
    	f.Fuzz(func(t *testing.T, b []byte) {
    		r := NewReader(bytes.NewReader(b))
    		type file struct {
    			header  *Header
    			content []byte
    		}
    		files := []file{}
    		for {
    			hdr, err := r.Next()
    			if err == io.EOF {
    				break
    			}
    			if err != nil {
    				return
    			}
    			buf := bytes.NewBuffer(nil)
    			if _, err := io.Copy(buf, r); err != nil {
    				continue
    			}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Jan 13 18:06:33 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/lex/stack.go

    	s.tr = append(s.tr, tr)
    }
    
    func (s *Stack) Next() ScanToken {
    	tos := s.tr[len(s.tr)-1]
    	tok := tos.Next()
    	for tok == scanner.EOF && len(s.tr) > 1 {
    		tos.Close()
    		// Pop the topmost item from the stack and resume with the next one down.
    		s.tr = s.tr[:len(s.tr)-1]
    		tok = s.Next()
    	}
    	return tok
    }
    
    func (s *Stack) Text() string {
    	return s.tr[len(s.tr)-1].Text()
    }
    
    func (s *Stack) File() string {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Jan 09 22:33:23 GMT 2017
    - 1.2K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/lex/input.go

    			}
    			in.beginningOfLine = tok == '\n'
    			if in.enabled() {
    				in.text = in.Stack.Text()
    				return tok
    			}
    		}
    	}
    	in.Error("recursive macro invocation")
    	return 0
    }
    
    func (in *Input) Text() string {
    	return in.text
    }
    
    // hash processes a # preprocessor directive. It reports whether it completes.
    func (in *Input) hash() bool {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
Back to top