Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 666 for Pwritev (0.1 sec)

  1. src/testing/iotest/writer.go

    import "io"
    
    // TruncateWriter returns a Writer that writes to w
    // but stops silently after n bytes.
    func TruncateWriter(w io.Writer, n int64) io.Writer {
    	return &truncateWriter{w, n}
    }
    
    type truncateWriter struct {
    	w io.Writer
    	n int64
    }
    
    func (t *truncateWriter) Write(p []byte) (n int, err error) {
    	if t.n <= 0 {
    		return len(p), nil
    	}
    	// real write
    	n = len(p)
    	if int64(n) > t.n {
    		n = int(t.n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 674 bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flushwriter/writer.go

    limitations under the License.
    */
    
    package flushwriter
    
    import (
    	"io"
    	"net/http"
    )
    
    // Wrap wraps an io.Writer into a writer that flushes after every write if
    // the writer implements the Flusher interface.
    func Wrap(w io.Writer) io.Writer {
    	fw := &flushWriter{
    		writer: w,
    	}
    	if flusher, ok := w.(http.Flusher); ok {
    		fw.flusher = flusher
    	}
    	return fw
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 05 16:09:42 UTC 2017
    - 1.3K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modindex/write.go

    func (e *encoder) Int(n int) {
    	if n < 0 || int(int32(n)) != n {
    		base.Fatalf("go: attempting to write an int to the index that overflows int32")
    	}
    	e.Uint32(uint32(n))
    }
    
    func (e *encoder) IntAt(n int, at int) {
    	if n < 0 || int(int32(n)) != n {
    		base.Fatalf("go: attempting to write an int to the index that overflows int32")
    	}
    	binary.LittleEndian.PutUint32(e.b[at:], uint32(n))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 10:10:21 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. src/archive/tar/testdata/writer-big.tar

    Joe Tsai <******@****.***> 1503528984 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 01:35:39 UTC 2017
    - 512 bytes
    - Viewed (0)
  5. src/internal/poll/fd_writev_unix.go

    // license that can be found in the LICENSE file.
    
    //go:build dragonfly || freebsd || linux || netbsd || (openbsd && mips64)
    
    package poll
    
    import (
    	"syscall"
    	"unsafe"
    )
    
    func writev(fd int, iovecs []syscall.Iovec) (uintptr, error) {
    	var (
    		r uintptr
    		e syscall.Errno
    	)
    	for {
    		r, _, e = syscall.Syscall(syscall.SYS_WRITEV, uintptr(fd), uintptr(unsafe.Pointer(&iovecs[0])), uintptr(len(iovecs)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 16:24:04 UTC 2022
    - 601 bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/tensor_array_ops_decomposition.mlir

      %gwrite = "tf.TensorArrayWriteV3"(%grad#0, %const1, %elem, %grad#1) : (tensor<!tf_type.resource>, tensor<i32>, tensor<3xf32>, tensor<f32>) -> tensor<f32>
      %grad2:2 = "tf.TensorArrayGradV3"(%arg0, %flow) {source = "b"} : (tensor<!tf_type.resource>, tensor<f32>) -> (tensor<!tf_type.resource>, tensor<f32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 49K bytes
    - Viewed (0)
  7. src/syscall/syscall_openbsd.go

    //sys	Truncate(path string, length int64) (err error)
    //sys	Umask(newmask int) (oldmask int)
    //sys	Unlink(path string) (err error)
    //sys	Unmount(path string, flags int) (err error)
    //sys	write(fd int, p []byte) (n int, err error)
    //sys	writev(fd int, iovecs []Iovec) (n uintptr, err error)
    //sys	mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
    //sys	munmap(addr uintptr, length uintptr) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 10:34:00 UTC 2023
    - 7K bytes
    - Viewed (0)
  8. src/internal/poll/fd_windows.go

    		}
    	}
    	return n, nil
    }
    
    // Pwrite emulates the Unix pwrite system call.
    func (fd *FD) Pwrite(buf []byte, off int64) (int, error) {
    	if fd.kind == kindPipe {
    		// Pwrite does not work with pipes
    		return 0, syscall.ESPIPE
    	}
    	// Call incref, not writeLock, because since pwrite specifies the
    	// offset it is independent from other writes.
    	if err := fd.incref(); err != nil {
    		return 0, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 16:50:42 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  9. src/archive/tar/testdata/writer-big-long.tar

    Joe Tsai <******@****.***> 1503105518 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 22:38:45 UTC 2017
    - 1.5K bytes
    - Viewed (0)
  10. src/internal/poll/fd.go

    // consume removes data from a slice of byte slices, for writev.
    func consume(v *[][]byte, n int64) {
    	for len(*v) > 0 {
    		ln0 := int64(len((*v)[0]))
    		if ln0 > n {
    			(*v)[0] = (*v)[0][n:]
    			return
    		}
    		n -= ln0
    		(*v)[0] = nil
    		*v = (*v)[1:]
    	}
    }
    
    // TestHookDidWritev is a hook for testing writev.
    var TestHookDidWritev = func(wrote int) {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:16:28 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top