Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,150 for writes (0.29 sec)

  1. cmd/local-locker_gen.go

    // EncodeMsg implements msgp.Encodable
    func (z lockStats) EncodeMsg(en *msgp.Writer) (err error) {
    	// map header, size 3
    	// write "Total"
    	err = en.Append(0x83, 0xa5, 0x54, 0x6f, 0x74, 0x61, 0x6c)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt(z.Total)
    	if err != nil {
    		err = msgp.WrapError(err, "Total")
    		return
    	}
    	// write "Writes"
    	err = en.Append(0xa6, 0x57, 0x72, 0x69, 0x74, 0x65, 0x73)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  2. cmd/erasure-encode.go

    import (
    	"context"
    	"fmt"
    	"io"
    )
    
    // Writes to multiple writers
    type multiWriter struct {
    	writers     []io.Writer
    	writeQuorum int
    	errs        []error
    }
    
    // Write writes data to writers.
    func (p *multiWriter) Write(ctx context.Context, blocks [][]byte) error {
    	for i := range p.writers {
    		if p.errs[i] != nil {
    			continue
    		}
    		if p.writers[i] == nil {
    			p.errs[i] = errDiskNotFound
    			continue
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. platforms/software/ivy/src/test/groovy/org/gradle/api/publish/ivy/internal/publisher/IvyDescriptorFileGeneratorTest.groovy

            }
        }
    
        def "writes supplied status"() {
            when:
            descriptor.status = "my-status"
    
            then:
            ivyXml.info.@status == "my-status"
        }
    
        def "writes supplied branch"() {
            when:
            descriptor.branch = "someBranch"
    
            then:
            ivyXml.info.@branch == "someBranch"
        }
    
        def "writes supplied licenses" () {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  4. internal/logger/logrotate.go

    	opts Options
    
    	// f is the currently open file used for appends.
    	// Writes to f are only synchronized once Close() is called,
    	// or when files are being rotated.
    	f *os.File
    
    	pw *xioutil.PipeWriter
    	pr *xioutil.PipeReader
    }
    
    // Write writes p into the current file, rotating if necessary.
    // Write is non-blocking, if the writer's queue is not full.
    // Write is blocking otherwise.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. src/compress/gzip/gzip.go

    }
    
    // NewWriter returns a new [Writer].
    // Writes to the returned writer are compressed and written to w.
    //
    // It is the caller's responsibility to call Close on the [Writer] when done.
    // Writes may be buffered and not flushed until Close.
    //
    // Callers that wish to set the fields in Writer.Header must do so before
    // the first call to Write, Flush, or Close.
    func NewWriter(w io.Writer) *Writer {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. maven-settings-builder/src/main/java/org/apache/maven/settings/io/SettingsWriter.java

         * @throws IOException If the settings could not be serialized.
         */
        void write(File output, Map<String, Object> options, Settings settings) throws IOException;
    
        /**
         * Writes the supplied settings to the specified character writer. The writer will be automatically closed before
         * the method returns.
         *
         * @param output The writer to serialize the settings to, must not be {@code null}.
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  7. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/impl/FileSystemSnapshotSerializerTest.groovy

        @Override
        Class<? extends AbstractEncoder> getEncoder() {
            return super.getEncoder()
        }
    
        def "reads and writes empty snapshots"() {
            when:
            def out = serialize(EMPTY, serializer)
    
            then:
            out == EMPTY
        }
    
        def "reads and writes file snapshots"() {
            def snapshots = new RegularFileSnapshot("/home/lptr/dev/one.txt", "one.txt", hashCodeFrom(1234), file(1, 1, DIRECT))
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. src/mime/multipart/writer.go

    	"errors"
    	"fmt"
    	"io"
    	"net/textproto"
    	"slices"
    	"strings"
    )
    
    // A Writer generates multipart messages.
    type Writer struct {
    	w        io.Writer
    	boundary string
    	lastpart *part
    }
    
    // NewWriter returns a new multipart [Writer] with a random boundary,
    // writing to w.
    func NewWriter(w io.Writer) *Writer {
    	return &Writer{
    		w:        w,
    		boundary: randomBoundary(),
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. pilot/pkg/config/kube/gateway/deploymentcontroller_test.go

    	assert.Equal(t, assert.ChannelHasItem(t, writes), buildPatch(ControllerVersion))
    	expectReconciled()
    	assert.ChannelIsEmpty(t, writes)
    	// Test fake doesn't actual do Apply, so manually do this
    	defaultGateway.Annotations = map[string]string{ControllerVersionAnnotation: fmt.Sprint(ControllerVersion)}
    	gws.Update(defaultGateway)
    	expectReconciled()
    	// We shouldn't write in response to our write.
    	assert.ChannelIsEmpty(t, writes)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 21:43:20 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  10. src/internal/byteorder/byteorder.go

    	_ = b[1] // bounds check hint to compiler; see golang.org/issue/14808
    	return uint16(b[0]) | uint16(b[1])<<8
    }
    
    func LePutUint16(b []byte, v uint16) {
    	_ = b[1] // early bounds check to guarantee safety of writes below
    	b[0] = byte(v)
    	b[1] = byte(v >> 8)
    }
    
    func LeAppendUint16(b []byte, v uint16) []byte {
    	return append(b,
    		byte(v),
    		byte(v>>8),
    	)
    }
    
    func LeUint32(b []byte) uint32 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 20:31:29 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top