Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 25 of 25 for bytesUnread (0.17 sec)

  1. src/expvar/expvar_test.go

    	s2.Set("fizz buzz")
    	b.ResetTimer()
    
    	b.ReportAllocs()
    	for i := 0; i < b.N; i++ {
    		_ = m.String()
    	}
    }
    
    func BenchmarkRealworldExpvarUsage(b *testing.B) {
    	var (
    		bytesSent Int
    		bytesRead Int
    	)
    
    	// The benchmark creates GOMAXPROCS client/server pairs.
    	// Each pair creates 4 goroutines: client reader/writer and server reader/writer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:46:19 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. src/encoding/asn1/asn1.go

    	if err != nil {
    		return
    	}
    	if len(bytes) > 8 {
    		// We'll overflow an int64 in this case.
    		err = StructuralError{"integer too large"}
    		return
    	}
    	for bytesRead := 0; bytesRead < len(bytes); bytesRead++ {
    		ret <<= 8
    		ret |= int64(bytes[bytesRead])
    	}
    
    	// Shift up and down in order to sign extend the result.
    	ret <<= 64 - uint8(len(bytes))*8
    	ret >>= 64 - uint8(len(bytes))*8
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt

        override val timestampNs: Long,
        override val call: Call,
      ) : CallEvent()
    
      data class ResponseBodyEnd(
        override val timestampNs: Long,
        override val call: Call,
        val bytesRead: Long,
      ) : CallEvent() {
        override fun closes(event: CallEvent): Boolean = event is ResponseBodyStart && call == event.call
      }
    
      data class ResponseFailed(
        override val timestampNs: Long,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/EventListenerTest.kt

        }
        if (responseBodyBytes != null) {
          val responseBodyEnd: ResponseBodyEnd = listener.removeUpToEvent<ResponseBodyEnd>()
          MatcherAssert.assertThat(
            "response body bytes",
            responseBodyEnd.bytesRead,
            responseBodyBytes,
          )
        } else {
          assertThat(listener.recordedEventTypes()).doesNotContain("ResponseBodyEnd")
        }
      }
    
      private fun greaterThan(value: Long): Matcher<Long?> {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (0)
  5. src/internal/trace/traceviewer/static/trace_viewer_full.html

    if(statName==='read_transfer_count'){const bytesRead=stats.read_transfer_count-
    prevStats.read_transfer_count;stats.bytes_read_per_sec=bytesRead/timeIntervalSeconds;}
    if(statName==='write_transfer_count'){const bytesWritten=stats.write_transfer_count-
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (1)
Back to top