Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 477 for gwrite (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/os/file_plan9.go

    		return 0, nil
    	}
    	return fixCount(syscall.Write(f.fd, b))
    }
    
    // pwrite writes len(b) bytes to the File starting at byte offset off.
    // It returns the number of bytes written and an error, if any.
    // Since Plan 9 preserves message boundaries, never allow
    // a zero-byte write.
    func (f *File) pwrite(b []byte, off int64) (n int, err error) {
    	if err := f.writeLock(); err != nil {
    		return 0, err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:35:30 UTC 2024
    - 16K bytes
    - Viewed (0)
  8. src/runtime/os_plan9.go

    	return pread(fd, buf, n, -1)
    }
    
    //go:nosplit
    func write1(fd uintptr, buf unsafe.Pointer, n int32) int32 {
    	return pwrite(int32(fd), buf, n, -1)
    }
    
    var _badsignal = []byte("runtime: signal received on thread not created by Go.\n")
    
    // This runs on a foreign stack, without an m or a g. No stack split.
    //
    //go:nosplit
    func badsignal2() {
    	pwrite(2, unsafe.Pointer(&_badsignal[0]), int32(len(_badsignal)), -1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. src/os/file.go

    	return io.Copy(fileWithoutReadFrom{File: f}, r)
    }
    
    // Write writes len(b) bytes from b to the File.
    // It returns the number of bytes written and an error, if any.
    // Write returns a non-nil error when n != len(b).
    func (f *File) Write(b []byte) (n int, err error) {
    	if err := f.checkValid("write"); err != nil {
    		return 0, err
    	}
    	n, e := f.write(b)
    	if n < 0 {
    		n = 0
    	}
    	if n != len(b) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:37 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  10. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/worker/TestEventSerializer.java

            }
    
            @Override
            public void write(Encoder encoder, DefaultNestedTestSuiteDescriptor value) throws Exception {
                idSerializer.write(encoder, (CompositeIdGenerator.CompositeId) value.getId());
                encoder.writeString(value.getName());
                encoder.writeString(value.getDisplayName());
                idSerializer.write(encoder, value.getParentId());
            }
        }
    
        @NonNullApi
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top