Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 369 for gwrite (0.13 sec)

  1. src/runtime/time_fake.go

    	return faketime / 1e9, int32(faketime % 1e9), faketime
    }
    
    // write is like the Unix write system call.
    // We have to avoid write barriers to avoid potential deadlock
    // on write calls.
    //
    //go:nowritebarrierrec
    func write(fd uintptr, p unsafe.Pointer, n int32) int32 {
    	if !(fd == 1 || fd == 2) {
    		// Do an ordinary write.
    		return write1(fd, p, n)
    	}
    
    	// Write with the playback header.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:15:13 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. src/internal/coverage/encodecounter/encode.go

    // coverage counter data.
    type CounterVisitorFn func(pkid uint32, funcid uint32, counters []uint32) error
    
    // Write writes the contents of the count-data file to the writer
    // previously supplied to NewCoverageDataWriter. Returns an error
    // if something went wrong somewhere with the write.
    func (cfw *CoverageDataWriter) Write(metaFileHash [16]byte, args map[string]string, visitor CounterVisitor) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. internal/ringbuffer/ring_buffer_benchmark_test.go

    	for i := 0; i < b.N; i++ {
    		rb.Write(data)
    	}
    }
    
    func BenchmarkRingBuffer_AsyncWrite(b *testing.B) {
    	rb := New(1024)
    	data := []byte(strings.Repeat("a", 512))
    	buf := make([]byte, 512)
    
    	go func() {
    		for {
    			rb.Write(data)
    		}
    	}()
    
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		rb.Read(buf)
    	}
    }
    
    func BenchmarkRingBuffer_AsyncWriteBlocking(b *testing.B) {
    	const sz = 512
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. 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)
  5. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/RecordingObjectOutputStream.kt

        override fun writeObjectOverride(obj: Any?) = record {
            write(obj)
        }
    
        override fun write(`val`: Int) = record {
            outputStream.write(`val`)
        }
    
        override fun write(buf: ByteArray) = record {
            outputStream.write(buf)
        }
    
        override fun write(buf: ByteArray, off: Int, len: Int) = record {
            outputStream.write(buf, off, len)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/IsolatedCodecs.kt

            write(value.value)
        }
    
        override suspend fun ReadContext.decode(): IsolatedEnumValueSnapshot {
            val value = read() as Enum<*>
            return IsolatedEnumValueSnapshot(value)
        }
    }
    
    
    object IsolatedSetCodec : Codec<IsolatedSet> {
        override suspend fun WriteContext.encode(value: IsolatedSet) {
            write(value.elements)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ImplementationSnapshotSerializer.java

            return serializer.read(decoder);
        }
    
        @Override
        public void write(Encoder encoder, ImplementationSnapshot implementationSnapshot) throws Exception {
            Impl serializer = determineSerializer(implementationSnapshot);
            encoder.writeSmallInt(serializer.ordinal());
            serializer.write(encoder, implementationSnapshot);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 12:33:49 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. internal/deadlineconn/deadlineconn.go

    func (c *DeadlineConn) Read(b []byte) (n int, err error) {
    	c.setReadDeadline()
    	n, err = c.Conn.Read(b)
    	return n, err
    }
    
    // Write - writes data to the connection.
    func (c *DeadlineConn) Write(b []byte) (n int, err error) {
    	c.setWriteDeadline()
    	n, err = c.Conn.Write(b)
    	return n, err
    }
    
    // WithReadDeadline sets a new read side net.Conn deadline.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. pkg/proxy/util/linebuffer.go

    type LineBuffer interface {
    	// Write takes a list of arguments, each a string or []string, joins all the
    	// individual strings with spaces, terminates with newline, and writes them to the
    	// buffer. Any other argument type will panic.
    	Write(args ...interface{})
    
    	// WriteBytes writes bytes to the buffer, and terminates with newline.
    	WriteBytes(bytes []byte)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. src/runtime/atomic_pointer.go

    // because while ptr does not escape, new does.
    // If new is marked as not escaping, the compiler will make incorrect
    // escape analysis decisions about the pointer value being stored.
    
    // atomicwb performs a write barrier before an atomic pointer write.
    // The caller should guard the call with "if writeBarrier.enabled".
    //
    // atomicwb should be an internal detail,
    // but widely used packages access it using linkname.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top