Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for Tata (0.12 sec)

  1. src/bytes/buffer_test.go

    			t.Errorf("expected error %v, got %v", test.err, err)
    		}
    	}
    }
    
    func BenchmarkReadString(b *testing.B) {
    	const n = 32 << 10
    
    	data := make([]byte, n)
    	data[n-1] = 'x'
    	b.SetBytes(int64(n))
    	for i := 0; i < b.N; i++ {
    		buf := NewBuffer(data)
    		_, err := buf.ReadString('x')
    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    }
    
    func TestGrow(t *testing.T) {
    	x := []byte{'x'}
    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

    	// if C.free is needed).
    	func C.CBytes([]byte) unsafe.Pointer
    
    	// C string to Go string
    	func C.GoString(*C.char) string
    
    	// C data with explicit length to Go string
    	func C.GoStringN(*C.char, C.int) string
    
    	// C data with explicit length to Go []byte
    	func C.GoBytes(unsafe.Pointer, C.int) []byte
    
    As a special case, C.malloc does not call the C library malloc directly
    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. misc/wasm/wasm_exec.js

    				this.mem.setUint32(offset, ptr, true);
    				this.mem.setUint32(offset + 4, 0, true);
    				offset += 8;
    			});
    
    			// The linker guarantees global data starts from at least wasmMinDataAddr.
    			// Keep in sync with cmd/link/internal/ld/data.go:wasmMinDataAddr.
    			const wasmMinDataAddr = 4096 + 8192;
    			if (offset >= wasmMinDataAddr) {
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  4. api/go1.5.txt

    pkg debug/dwarf, const ClassString = 12
    pkg debug/dwarf, const ClassString Class
    pkg debug/dwarf, const ClassStringAlt = 14
    pkg debug/dwarf, const ClassStringAlt Class
    pkg debug/dwarf, method (*Data) LineReader(*Entry) (*LineReader, error)
    pkg debug/dwarf, method (*Entry) AttrField(Attr) *Field
    pkg debug/dwarf, method (*LineReader) Next(*LineEntry) error
    pkg debug/dwarf, method (*LineReader) Reset()
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  5. src/archive/zip/writer_test.go

    type WriteTest struct {
    	Name   string
    	Data   []byte
    	Method uint16
    	Mode   fs.FileMode
    }
    
    var writeTests = []WriteTest{
    	{
    		Name:   "foo",
    		Data:   []byte("Rabbits, guinea pigs, gophers, marsupial rats, and quolls."),
    		Method: Store,
    		Mode:   0666,
    	},
    	{
    		Name:   "bar",
    		Data:   nil, // large data set in the test
    		Method: Deflate,
    		Mode:   0644,
    	},
    	{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  6. src/bytes/buffer.go

    // ReadBytes reads until the first occurrence of delim in the input,
    // returning a slice containing the data up to and including the delimiter.
    // If ReadBytes encounters an error before finding a delimiter,
    // it returns the data read before the error and the error itself (often io.EOF).
    // ReadBytes returns err != nil if and only if the returned data does not end in
    // delim.
    func (b *Buffer) ReadBytes(delim byte) (line []byte, err error) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  7. src/archive/tar/common.go

    // that the file has no data in it, which is rather odd.
    //
    // As an example, if the underlying raw file contains the 10-byte data:
    //
    //	var compactFile = "abcdefgh"
    //
    // And the sparse map has the following entries:
    //
    //	var spd sparseDatas = []sparseEntry{
    //		{Offset: 2,  Length: 5},  // Data fragment for 2..6
    //		{Offset: 18, Length: 3},  // Data fragment for 18..20
    //	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  8. src/archive/tar/reader_test.go

    			PAXRecords: map[string]string{
    				"linkpath": "PAX4/PAX4/long-linkpath-name",
    			},
    			Format: FormatPAX,
    		}},
    	}, {
    		// Both BSD and GNU tar truncate long names at first NUL even
    		// if there is data following that NUL character.
    		// This is reasonable as GNU long names are C-strings.
    		file: "testdata/gnu-long-nul.tar",
    		headers: []*Header{{
    			Name:     "0123456789",
    			Mode:     0644,
    			Uid:      1000,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  9. src/bufio/scan.go

    	// an incorrectly encoded string.
    	return 1, errorRune, nil
    }
    
    // dropCR drops a terminal \r from the data.
    func dropCR(data []byte) []byte {
    	if len(data) > 0 && data[len(data)-1] == '\r' {
    		return data[0 : len(data)-1]
    	}
    	return data
    }
    
    // ScanLines is a split function for a [Scanner] that returns each line of
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  10. doc/asm.html

    </p>
    
    <p>
    Global data symbols are defined by a sequence of initializing
    <code>DATA</code> directives followed by a <code>GLOBL</code> directive.
    Each <code>DATA</code> directive initializes a section of the
    corresponding memory.
    The memory not explicitly initialized is zeroed.
    The general form of the <code>DATA</code> directive is
    
    <pre>
    DATA	symbol+offset(SB)/width, value
    </pre>
    
    <p>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
Back to top