Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 64 for ByteCount (0.16 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Connection.kt

      fun writeData(
        streamId: Int,
        outFinished: Boolean,
        buffer: Buffer?,
        byteCount: Long,
      ) {
        // Empty data frames are not flow-controlled.
        if (byteCount == 0L) {
          writer.data(outFinished, streamId, buffer, 0)
          return
        }
    
        var byteCount = byteCount
        while (byteCount > 0L) {
          var toWrite: Int
          withLock {
            try {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 31.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java

            buf[1] = 0x66; // andxCommand
            ServerMessageBlock.writeInt2(50, buf, 3); // andxOffset
            ServerMessageBlock.writeInt2(20, buf, 9); // byteCount for main block
    
            // At offset 50, the implementation writes andx.wordCount (0) to buffer
            // Then reads byteCount at offset 51
            ServerMessageBlock.writeInt2(20, buf, 51);
    
            int n = block.readAndXWireFormat(buf, 0);
            assertTrue(n > 0);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt

        internal var closed: Boolean = false
    
        @Throws(IOException::class)
        override fun read(
          sink: Buffer,
          byteCount: Long,
        ): Long {
          require(byteCount >= 0L) { "byteCount < 0: $byteCount" }
    
          while (true) {
            var tryAgain = false
            var readBytesDelivered = -1L
            var errorExceptionToDeliver: IOException? = null
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Jul 07 18:57:05 GMT 2025
    - 22.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

            SMBUtil.writeInt2(83, buffer, 36); // andxOffset (33 + 50)
            SMBUtil.writeInt2(20, buffer, 42); // byteCount
    
            // Setup andx command data at offset 83 (absolute position from buffer start)
            buffer[83] = 2; // andx wordCount
            SMBUtil.writeInt2(10, buffer, 88); // andx byteCount
    
            int length = testBlock.decode(buffer, 0);
    
            assertTrue(length > 0);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/FaultHidingSink.kt

    ) : ForwardingSink(delegate) {
      private var hasErrors = false
    
      override fun write(
        source: Buffer,
        byteCount: Long,
      ) {
        if (hasErrors) {
          source.skip(byteCount)
          return
        }
        try {
          super.write(source, byteCount)
        } catch (e: IOException) {
          hasErrors = true
          onException(e)
        }
      }
    
      override fun flush() {
        if (hasErrors) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 1.5K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/smb1/SmbComNegotiateResponse.java

                    + Hexdump.toHexString(server.capabilities, 8) + ",serverTime=" + new Date(server.serverTime) + ",serverTimeZone="
                    + server.serverTimeZone + ",encryptionKeyLength=" + server.encryptionKeyLength + ",byteCount=" + byteCount
                    + ",oemDomainName=" + server.oemDomainName + "]");
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 6K bytes
    - Click Count (0)
  7. samples/guide/src/main/java/okhttp3/recipes/Progress.java

        private Source source(Source source) {
          return new ForwardingSource(source) {
            long totalBytesRead = 0L;
    
            @Override public long read(Buffer sink, long byteCount) throws IOException {
              long bytesRead = super.read(sink, byteCount);
              // read() returns the number of bytes read, or -1 if this source is exhausted.
              totalBytesRead += bytesRead != -1 ? bytesRead : 0;
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Jan 12 03:31:36 GMT 2019
    - 3.9K bytes
    - Click Count (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/EventListenerAdapter.kt

      ) = onEvent(RequestHeadersEnd(System.nanoTime(), call, request.headers.byteCount()))
    
      override fun requestBodyStart(call: Call) =
        onEvent(
          RequestBodyStart(
            System.nanoTime(),
            call,
          ),
        )
    
      override fun requestBodyEnd(
        call: Call,
        byteCount: Long,
      ) = onEvent(RequestBodyEnd(System.nanoTime(), call, byteCount))
    
      override fun requestFailed(
        call: Call,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/RequestBody.kt

          contentType: MediaType? = null,
          offset: Int = 0,
          byteCount: Int = size,
        ): RequestBody {
          checkOffsetAndCount(size.toLong(), offset.toLong(), byteCount.toLong())
          return object : RequestBody() {
            override fun contentType() = contentType
    
            override fun contentLength() = byteCount.toLong()
    
            override fun writeTo(sink: BufferedSink) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Oct 07 14:16:29 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/UploadProgress.kt

              private var completed = false
    
              override fun write(
                source: Buffer,
                byteCount: Long,
              ) {
                super.write(source, byteCount)
                totalBytesWritten += byteCount
                progressListener.update(totalBytesWritten, contentLength(), completed)
              }
    
              override fun close() {
                super.close()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Aug 30 17:01:12 GMT 2025
    - 3.8K bytes
    - Click Count (0)
Back to Top