Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for writeData (0.12 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

            writeBytesTotal += toWrite
            outFinished = outFinishedOnLastFrame && toWrite == sendBuffer.size
          }
    
          writeTimeout.enter()
          try {
            connection.writeData(id, outFinished, sendBuffer, toWrite)
          } finally {
            writeTimeout.exitAndThrowIfTimedOut()
          }
        }
    
        @Throws(IOException::class)
        override fun flush() {
          lock.assertNotHeld()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

       *
       * Zero [byteCount] writes are not subject to flow control and will not block. The only use case
       * for zero [byteCount] is closing a flushed output stream.
       */
      @Throws(IOException::class)
      fun writeData(
        streamId: Int,
        outFinished: Boolean,
        buffer: Buffer?,
        byteCount: Long,
      ) {
        // Empty data frames are not flow-controlled.
        if (byteCount == 0L) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

                  override fun writeTo(sink: BufferedSink) {
                    sink.write(postBytes) // push bytes into the stream's buffer
                    sink.flush() // Http2Connection.writeData subject to write window
                    sink.close() // Http2Connection.writeData empty frame
                  }
                },
            ),
          )
        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("ABCDE")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 75.3K bytes
    - Viewed (0)
  4. cmd/sftp-server-driver.go

    	for i := range w.buffer {
    		delete(w.buffer, i)
    	}
    	w.wg.Wait()
    	return err
    }
    
    type writerAt struct {
    	w      *io.PipeWriter
    	r      *io.PipeReader
    	wg     *sync.WaitGroup
    	buffer map[int64][]byte
    	err    error
    
    	nextOffset int64
    	m          sync.Mutex
    }
    
    func (w *writerAt) WriteAt(b []byte, offset int64) (n int, err error) {
    	w.m.Lock()
    	defer w.m.Unlock()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/http2/Http2Connection;->shutdown(Lokhttp3/internal/http2/ErrorCode;)V
    HSPLokhttp3/internal/http2/Http2Connection;->updateConnectionFlowControl$okhttp(J)V
    HSPLokhttp3/internal/http2/Http2Connection;->writeData(IZLokio/Buffer;J)V
    HSPLokhttp3/internal/http2/Http2ExchangeCodec;-><clinit>()V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
  6. api/go1.20.txt

    pkg go/types, func Satisfies(Type, *Interface) bool #56548
    pkg io/fs, var SkipAll error #47209
    pkg io, func NewOffsetWriter(WriterAt, int64) *OffsetWriter #45899
    pkg io, method (*OffsetWriter) Seek(int64, int) (int64, error) #45899
    pkg io, method (*OffsetWriter) WriteAt([]uint8, int64) (int, error) #45899
    pkg io, method (*OffsetWriter) Write([]uint8) (int, error) #45899
    pkg io, type OffsetWriter struct #45899
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Feb 17 21:23:32 UTC 2023
    - 602.6K bytes
    - Viewed (0)
  7. api/go1.txt

    pkg io, type WriteSeeker interface, Write([]uint8) (int, error)
    pkg io, type Writer interface { Write }
    pkg io, type Writer interface, Write([]uint8) (int, error)
    pkg io, type WriterAt interface { WriteAt }
    pkg io, type WriterAt interface, WriteAt([]uint8, int64) (int, error)
    pkg io, type WriterTo interface { WriteTo }
    pkg io, type WriterTo interface, WriteTo(Writer) (int64, error)
    pkg io, var EOF error
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top