Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 4,308 for gwrite (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache2/FileOperator.kt

    import java.nio.channels.FileChannel
    import okio.Buffer
    
    /**
     * Read and write a target file. Unlike Okio's built-in `Okio.source(java.io.File file)` and `Okio.sink(java.io.File file)`
     * this class offers:
     *
     *  * **Read/write:** read and write using the same operator.
     *  * **Random access:** access any position within the file.
     *  * **Shared channels:** read and write a file channel that's shared between
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. src/cmd/dist/testjson.go

    	"errors"
    	"fmt"
    	"io"
    	"sync"
    	"time"
    )
    
    // lockedWriter serializes Write calls to an underlying Writer.
    type lockedWriter struct {
    	lock sync.Mutex
    	w    io.Writer
    }
    
    func (w *lockedWriter) Write(b []byte) (int, error) {
    	w.lock.Lock()
    	defer w.lock.Unlock()
    	return w.w.Write(b)
    }
    
    // testJSONFilter is an io.Writer filter that replaces the Package field in
    // test2json output.
    type testJSONFilter struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

                fp += n;
                return n;
            }
            return 0;
        }
    
        public void write( int b ) throws SmbException {
            tmp[0] = (byte)b;
            write( tmp, 0, 1 );
        }
        public void write( byte b[] ) throws SmbException {
            write( b, 0, b.length );
        }
        public void write( byte b[], int off, int len ) throws SmbException {
            if( len <= 0 ) {
                return;
            }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.9K bytes
    - Viewed (0)
  4. pkg/proxy/util/linebuffer_test.go

    	}{
    		{
    			name:     "write no line",
    			expected: 0,
    		},
    		{
    			name:     "write one line",
    			expected: 1,
    		},
    		{
    			name:     "write 100 lines",
    			expected: 100,
    		},
    		{
    			name:     "write 1000 lines",
    			expected: 1000,
    		},
    		{
    			name:     "write 10000 lines",
    			expected: 10000,
    		},
    		{
    			name:     "write 100000 lines",
    			expected: 100000,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 12:38:25 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/util/LineBufferingOutputStreamTest.groovy

            LineBufferingOutputStream outputStream = new LineBufferingOutputStream(action, separator, 8)
            outputStream.write("line ".getBytes())
            outputStream.write("1-line 2".getBytes())
    
            then:
            1 * action.text("line 1-")
    
            when:
            outputStream.write("-".getBytes())
    
            then:
            1 * action.text("line 2-")
        }
    
        def logsEmptyLines() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:56:08 UTC 2021
    - 5.3K bytes
    - Viewed (0)
  6. src/io/pipe_test.go

    	. "io"
    	"slices"
    	"strings"
    	"testing"
    	"time"
    )
    
    func checkWrite(t *testing.T, w Writer, data []byte, c chan int) {
    	n, err := w.Write(data)
    	if err != nil {
    		t.Errorf("write: %v", err)
    	}
    	if n != len(data) {
    		t.Errorf("short write: %d != %d", n, len(data))
    	}
    	c <- 0
    }
    
    // Test a single read/write pair.
    func TestPipe1(t *testing.T) {
    	c := make(chan int)
    	r, w := Pipe()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9K bytes
    - Viewed (0)
  7. internal/s3select/message.go

    				if !writer.write(newStatsMessage(writer.finBytesScanned, writer.finBytesProcessed, bytesReturned)) {
    					break
    				}
    				writer.write(endMessage)
    			} else {
    				for payload.Len() > 0 {
    					copiedLen := copy(writer.payloadBuffer[writer.payloadBufferIndex:], payload.Bytes())
    					writer.payloadBufferIndex += copiedLen
    					payload.Next(copiedLen)
    
    					// If buffer is filled, flush it now!
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Aug 30 15:26:43 UTC 2022
    - 15.2K bytes
    - Viewed (0)
  8. src/hash/maphash/maphash_test.go

    	}
    	for _, h := range hh[1:] {
    		h.SetSeed(hh[0].Seed())
    	}
    	hh[0].Write(b)
    	hh[1].WriteString(string(b))
    
    	writeByte := func(h *Hash, b byte) {
    		err := h.WriteByte(b)
    		if err != nil {
    			t.Fatalf("WriteByte: %v", err)
    		}
    	}
    	writeSingleByte := func(h *Hash, b byte) {
    		_, err := h.Write([]byte{b})
    		if err != nil {
    			t.Fatalf("Write single byte: %v", err)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  9. pkg/test/echo/server/endpoint/tcp.go

    	ip, _, _ := net.SplitHostPort(conn.RemoteAddr().String())
    	// Write non-request fields specific to the instance
    	out := &strings.Builder{}
    	echo.StatusCodeField.Write(out, strconv.Itoa(http.StatusOK))
    	echo.ClusterField.WriteNonEmpty(out, s.Cluster)
    	echo.IstioVersionField.WriteNonEmpty(out, s.IstioVersion)
    	echo.NamespaceField.WriteNonEmpty(out, s.Namespace)
    	echo.ServiceVersionField.Write(out, s.Version)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 16:20:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  10. 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)
Back to top