Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for func (0.18 sec)

  1. src/bytes/buffer_test.go

    type negativeReader struct{}
    
    func (r *negativeReader) Read([]byte) (int, error) { return -1, nil }
    
    func init() {
    	testBytes = make([]byte, N)
    	for i := 0; i < N; i++ {
    		testBytes[i] = 'a' + byte(i%26)
    	}
    	testString = string(testBytes)
    }
    
    // Verify that contents of buf match the string s.
    func check(t *testing.T, testname string, buf *Buffer, s string) {
    	bytes := buf.Bytes()
    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

    world.
    
    For example, here is the definition of _Cfunc_puts:
    
    	//go:cgo_import_static _cgo_be59f0f25121_Cfunc_puts
    	//go:linkname __cgofn__cgo_be59f0f25121_Cfunc_puts _cgo_be59f0f25121_Cfunc_puts
    	var __cgofn__cgo_be59f0f25121_Cfunc_puts byte
    	var _cgo_be59f0f25121_Cfunc_puts = unsafe.Pointer(&__cgofn__cgo_be59f0f25121_Cfunc_puts)
    
    	func _Cfunc_puts(p0 *_Ctype_char) (r1 _Ctype_int) {
    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. src/archive/tar/common.go

    }
    
    // FileInfo returns an fs.FileInfo for the Header.
    func (h *Header) FileInfo() fs.FileInfo {
    	return headerFileInfo{h}
    }
    
    // headerFileInfo implements fs.FileInfo.
    type headerFileInfo struct {
    	h *Header
    }
    
    func (fi headerFileInfo) Size() int64        { return fi.h.Size }
    func (fi headerFileInfo) IsDir() bool        { return fi.Mode().IsDir() }
    func (fi headerFileInfo) ModTime() time.Time { return fi.h.ModTime }
    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)
  4. src/archive/zip/zip_test.go

    // 0xFFFFFFFF, but not before.
    func TestZip64DirectoryOffset(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping in short mode")
    	}
    	t.Parallel()
    	const filename = "huge.txt"
    	gen := func(wantOff uint64) func(*Writer) {
    		return func(w *Writer) {
    			w.testHookCloseSizeOffset = func(size, off uint64) {
    				if off != wantOff {
    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)
  5. src/builtin/builtin.go

    // const declaration. It is zero-indexed.
    const iota = 0 // Untyped int.
    
    // nil is a predeclared identifier representing the zero value for a
    // pointer, channel, func, interface, map, or slice type.
    var nil Type // Type must be a pointer, channel, func, interface, map, or slice type
    
    // Type is here for the purposes of documentation only. It is a stand-in
    // for any Go type, but represents the same type for any given function
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  6. src/cmd/api/main_test.go

    }
    
    func (w *Walker) emitFunc(f *types.Func) {
    	sig := f.Type().(*types.Signature)
    	if sig.Recv() != nil {
    		panic("method considered a regular function: " + f.String())
    	}
    	if w.isDeprecated(f) {
    		w.emitf("func %s //deprecated", f.Name())
    	}
    	w.emitf("func %s%s", f.Name(), w.signatureString(sig))
    }
    
    func (w *Walker) emitMethod(m *types.Selection) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  7. src/archive/zip/writer.go

    type countWriter struct {
    	w     io.Writer
    	count int64
    }
    
    func (w *countWriter) Write(p []byte) (int, error) {
    	n, err := w.w.Write(p)
    	w.count += int64(n)
    	return n, err
    }
    
    type nopCloser struct {
    	io.Writer
    }
    
    func (w nopCloser) Close() error {
    	return nil
    }
    
    type writeBuf []byte
    
    func (b *writeBuf) uint8(v uint8) {
    	(*b)[0] = v
    	*b = (*b)[1:]
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  8. src/archive/tar/reader.go

    	default:
    		return n, err
    	}
    }
    
    func (fr *regFileReader) WriteTo(w io.Writer) (int64, error) {
    	return io.Copy(w, struct{ io.Reader }{fr})
    }
    
    // logicalRemaining implements fileState.logicalRemaining.
    func (fr regFileReader) logicalRemaining() int64 {
    	return fr.nb
    }
    
    // physicalRemaining implements fileState.physicalRemaining.
    func (fr regFileReader) physicalRemaining() int64 {
    	return fr.nb
    }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  9. src/archive/tar/tar_test.go

    type fileInfoNames struct{}
    
    func (f *fileInfoNames) Name() string {
    	return "tmp"
    }
    
    func (f *fileInfoNames) Size() int64 {
    	return 0
    }
    
    func (f *fileInfoNames) Mode() fs.FileMode {
    	return 0777
    }
    
    func (f *fileInfoNames) ModTime() time.Time {
    	return time.Time{}
    }
    
    func (f *fileInfoNames) IsDir() bool {
    	return false
    }
    
    func (f *fileInfoNames) Sys() any {
    	return nil
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
Back to top