Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 4,375 for dwrite (0.59 sec)

  1. 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)
  2. 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)
  3. src/syscall/fs_js.go

    		return 0, err
    	}
    	js.CopyBytesToGo(b, buf)
    
    	n2 := n.Int()
    	f.pos += int64(n2)
    	return n2, err
    }
    
    func Write(fd int, b []byte) (int, error) {
    	f, err := fdToFile(fd)
    	if err != nil {
    		return 0, err
    	}
    
    	if f.seeked {
    		n, err := Pwrite(fd, b, f.pos)
    		f.pos += int64(n)
    		return n, err
    	}
    
    	if faketime && (fd == 1 || fd == 2) {
    		n := faketimeWrite(fd, b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 11 18:19:17 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-typed-test.h

    // each implementation can easily instantiate the test suite to verify
    // that it conforms to the requirements, without having to write
    // similar tests repeatedly.  Here's an example:
    
    #if 0
    
    // First, define a fixture class template.  It should be parameterized
    // by a type.  Remember to derive it from testing::Test.
    template <typename T>
    class FooTest : public testing::Test {
      ...
    };
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 10K bytes
    - Viewed (0)
  5. src/cmd/gofmt/gofmt.go

    	fmt.Fprintf(r.getState().err, format, args...)
    }
    
    // Write emits a slice to the reporter's output stream.
    //
    // Any error is returned to the caller, and does not otherwise affect the
    // reporter's exit code.
    func (r *reporter) Write(p []byte) (int, error) {
    	return r.getState().out.Write(p)
    }
    
    // Report emits a non-nil error to the reporter's error stream,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/WorkNodeCodec.kt

            withGradleIsolate(owner, internalTypesCodec) {
                doWrite(work)
            }
        }
    
        suspend fun ReadContext.readWork(): ScheduledWork =
            withGradleIsolate(owner, internalTypesCodec) {
                doRead()
            }
    
        private
        suspend fun WriteContext.doWrite(work: ScheduledWork) {
            val nodes = work.scheduledNodes
            val nodeCount = nodes.size
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. src/net/http/transport.go

    		defer cancel()
    
    		didReadResponse := make(chan struct{}) // closed after CONNECT write+read is done or fails
    		var (
    			resp *Response
    			err  error // write or read error
    		)
    		// Write the CONNECT request & read the response.
    		go func() {
    			defer close(didReadResponse)
    			err = connectReq.Write(conn)
    			if err != nil {
    				return
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  8. 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)
  9. platforms/software/publish/src/main/java/org/gradle/api/publish/internal/metadata/ModuleMetadataJsonWriter.java

                        write("name", artifact.name);
                        write("url", artifact.uri);
                        File file = artifact.file;
                        write("size", file.length());
                        write("sha512", sha512(file));
                        write("sha256", sha256(file));
                        write("sha1", sha1(file));
                        write("md5", md5(file));
                    });
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/report/unbound/UnboundRulesReporter.java

                writer.write(" ");
                writer.write(input.getType() == null ? "<untyped>" : input.getType());
                if (input.getDescription() != null) {
                    writer.write(" ");
                    writer.write("(");
                    writer.write(input.getDescription());
                    writer.write(")");
                }
                if (!input.isBound()) {
                    writer.write(" ");
                    writer.write("[*]");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top