Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 858 for gwrite (0.5 sec)

  1. src/runtime/debuglog.go

    	l.bytes(b[:])
    }
    
    //go:nosplit
    func (l *debugLogWriter) byte(x byte) {
    	l.ensure(1)
    	pos := l.write
    	l.write++
    	l.data.b[pos%uint64(len(l.data.b))] = x
    }
    
    //go:nosplit
    func (l *debugLogWriter) bytes(x []byte) {
    	l.ensure(uint64(len(x)))
    	pos := l.write
    	l.write += uint64(len(x))
    	for len(x) > 0 {
    		n := copy(l.data.b[pos%uint64(len(l.data.b)):], x)
    		pos += uint64(n)
    		x = x[n:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  2. src/archive/tar/writer.go

    	"path"
    	"slices"
    	"strings"
    	"time"
    )
    
    // Writer provides sequential writing of a tar archive.
    // [Writer.WriteHeader] begins a new file with the provided [Header],
    // and then Writer can be treated as an io.Writer to supply that file's data.
    type Writer struct {
    	w    io.Writer
    	pad  int64      // Amount of padding to write after current file entry
    	curr fileWriter // Writer for current file entry
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  3. src/image/gif/writer.go

    			return i
    		}
    	}
    	return -1
    }
    
    // writer is a buffered writer.
    type writer interface {
    	Flush() error
    	io.Writer
    	io.ByteWriter
    }
    
    // encoder encodes an image to the GIF format.
    type encoder struct {
    	// w is the writer to write to. err is the first error encountered during
    	// writing. All attempted writes after the first error become no-ops.
    	w   writer
    	err error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:38:09 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  4. src/image/png/writer.go

    	}
    }
    
    // An encoder is an io.Writer that satisfies writes by writing PNG IDAT chunks,
    // including an 8-byte header and 4-byte CRC checksum per Write call. Such calls
    // should be relatively infrequent, since writeIDATs uses a [bufio.Writer].
    //
    // This method should only be called from writeIDATs (via writeImage).
    // No other code should treat an encoder as an io.Writer.
    func (e *encoder) Write(b []byte) (int, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/rangefunc/rewrite.go

    Rewriting the construct in the front end, before noder, means the functions generated during
    the rewrite are available in a noder-generated representation for inlining by the back end.
    
    # Theory of Operation
    
    The basic idea is to rewrite
    
    	for x := range f {
    		...
    	}
    
    into
    
    	f(func(x T) bool {
    		...
    	})
    
    But it's not usually that easy.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  6. docs/en/docs/img/logo-margin/logo-white-bg.png

    logo-white-bg.png...
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sun Feb 04 20:56:59 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  7. src/internal/poll/fd_unix.go

    		}
    		if n == 0 {
    			return nn, io.ErrUnexpectedEOF
    		}
    	}
    }
    
    // Pwrite wraps the pwrite system call.
    func (fd *FD) Pwrite(p []byte, off int64) (int, error) {
    	// Call incref, not writeLock, because since pwrite specifies the
    	// offset it is independent from other writes.
    	// Similarly, using the poller doesn't make sense for pwrite.
    	if err := fd.incref(); err != nil {
    		return 0, err
    	}
    	defer fd.decref()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 04:09:44 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

      // For the read-only case we only need that the last unknown write is already
      // tracked by the last `resource` write since we don't have dependencies to
      // any other read accesses.
      // Otherwise, we need that the last unknown read(s) and write are already
      // tracked by any read or write accesses of `resource`.
      bool is_tracked = read_only ?
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  9. src/runtime/heapdump.go

    		nbuf += len
    		return
    	}
    
    	write(dumpfd, unsafe.Pointer(&buf), int32(nbuf))
    	if len >= bufSize {
    		write(dumpfd, data, int32(len))
    		nbuf = 0
    	} else {
    		copy(buf[:], (*[bufSize]byte)(data)[:len])
    		nbuf = len
    	}
    }
    
    func dwritebyte(b byte) {
    	dwrite(unsafe.Pointer(&b), 1)
    }
    
    func flush() {
    	write(dumpfd, unsafe.Pointer(&buf), int32(nbuf))
    	nbuf = 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/declarative-dsl-provider/src/integTest/groovy/org/gradle/internal/declarativedsl/project/DeclarativeDslProjectBuildFileIntegrationSpec.groovy

                        read = false
                        write = false
                    }
    
                    secondaryAccess {
                        name = "two"
                        read = true
                        write = false
                    }
    
                    secondaryAccess {
                        name = "three"
                        read = true
                        write = true
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
Back to top