Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for space (0.15 sec)

  1. src/bytes/buffer.go

    		return l, true
    	}
    	return 0, false
    }
    
    // grow grows the buffer to guarantee space for n more bytes.
    // It returns the index where bytes should be written.
    // If the buffer can't grow it will panic with ErrTooLarge.
    func (b *Buffer) grow(n int) int {
    	m := b.Len()
    	// If buffer is empty, reset to recover space.
    	if m == 0 && b.off != 0 {
    		b.Reset()
    	}
    	// Try to grow by means of a reslice.
    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)
  2. src/arena/arena.go

    // license that can be found in the LICENSE file.
    
    //go:build goexperiment.arenas
    
    /*
    The arena package provides the ability to allocate memory for a collection
    of Go values and free that space manually all at once, safely. The purpose
    of this functionality is to improve efficiency: manually freeing memory
    before a garbage collection delays that cycle. Less frequent cycles means
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  3. src/archive/tar/strconv.go

    }
    
    func (p *parser) parseOctal(b []byte) int64 {
    	// Because unused fields are filled with NULs, we need
    	// to skip leading NULs. Fields may also be padded with
    	// spaces or NULs.
    	// So we remove leading and trailing NULs and spaces to
    	// be sure.
    	b = bytes.Trim(b, " \x00")
    
    	if len(b) == 0 {
    		return 0
    	}
    	x, perr := strconv.ParseUint(p.parseString(b), 8, 64)
    	if perr != nil {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/lex/tokenizer.go

    	line int
    	file *os.File // If non-nil, file descriptor to close.
    }
    
    func NewTokenizer(name string, r io.Reader, file *os.File) *Tokenizer {
    	var s scanner.Scanner
    	s.Init(r)
    	// Newline is like a semicolon; other space characters are fine.
    	s.Whitespace = 1<<'\t' | 1<<'\r' | 1<<' '
    	// Don't skip comments: we need to count newlines.
    	s.Mode = scanner.ScanChars |
    		scanner.ScanFloats |
    		scanner.ScanIdents |
    		scanner.ScanInts |
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Aug 04 20:35:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/callback_c.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <string.h>
    
    #include "_cgo_export.h"
    
    void
    callback(void *f)
    {
    	// use some stack space
    	volatile char data[64*1024];
    
    	data[0] = 0;
    	goCallback(f);
            data[sizeof(data)-1] = 0;
    }
    
    void
    callGoFoo(void)
    {
    	extern void goFoo(void);
    	goFoo();
    }
    
    void
    IntoC(void)
    {
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 933 bytes
    - Viewed (0)
  6. src/bufio/scan.go

    	return false
    }
    
    // ScanWords is a split function for a [Scanner] that returns each
    // space-separated word of text, with surrounding spaces deleted. It will
    // never return an empty string. The definition of space is set by
    // unicode.IsSpace.
    func ScanWords(data []byte, atEOF bool) (advance int, token []byte, err error) {
    	// Skip leading spaces.
    	start := 0
    	for width := 0; start < len(data); start += width {
    		var r rune
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  7. src/bytes/bytes.go

    // Fields interprets s as a sequence of UTF-8-encoded code points.
    // It splits the slice s around each instance of one or more consecutive white space
    // characters, as defined by unicode.IsSpace, returning a slice of subslices of s or an
    // empty slice if s contains only white space.
    func Fields(s []byte) [][]byte {
    	// First count the fields.
    	// This is an exact count if s is ASCII, otherwise it is an approximation.
    	n := 0
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  8. doc/go1.17_spec.html

    A general comment containing no newlines acts like a space.
    Any other comment acts like a newline.
    </p>
    
    <h3 id="Tokens">Tokens</h3>
    
    <p>
    Tokens form the vocabulary of the Go language.
    There are four classes: <i>identifiers</i>, <i>keywords</i>, <i>operators
    and punctuation</i>, and <i>literals</i>.  <i>White space</i>, formed from
    spaces (U+0020), horizontal tabs (U+0009),
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  9. src/cmd/cgo/doc.go

    		Put all generated files in directory.
    	-srcdir directory
    */
    package main
    
    /*
    Implementation details.
    
    Cgo provides a way for Go programs to call C code linked into the same
    address space. This comment explains the operation of cgo.
    
    Cgo reads a set of Go source files and looks for statements saying
    import "C". If the import has a doc comment, that comment is
    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)
  10. src/archive/zip/zip_test.go

    	return buf
    }
    
    func (ss *suffixSaver) Write(p []byte) (n int, err error) {
    	n = len(p)
    	ss.size += int64(len(p))
    	if len(ss.buf) < ss.keep {
    		space := ss.keep - len(ss.buf)
    		add := len(p)
    		if add > space {
    			add = space
    		}
    		ss.buf = append(ss.buf, p[:add]...)
    		p = p[add:]
    	}
    	for len(p) > 0 {
    		n := copy(ss.buf[ss.start:], p)
    		p = p[n:]
    		ss.start += n
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
Back to top