Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for setLength (0.24 sec)

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

          val result = Relay(randomAccessFile, upstream, 0L, metadata, bufferMaxSize)
    
          // Write a dirty header. That way if we crash we won't attempt to recover this.
          randomAccessFile.setLength(0L)
          result.writeHeader(PREFIX_DIRTY, -1L, -1L)
    
          return result
        }
    
        /**
         * Creates a relay that reads a recorded stream from [file].
         *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

            fileBuilder.append(".tmp")
            dirtyFiles += directory / fileBuilder.toString()
            fileBuilder.setLength(truncateTo)
          }
        }
    
        /** Set lengths using decimal numbers like "10123". */
        @Throws(IOException::class)
        internal fun setLengths(strings: List<String>) {
          if (strings.size != valueCount) {
            invalidLengths(strings)
          }
    
          try {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

          Pray how did you manage to do it?'
    
        `In my youth,' said his father, `I took to the law,
          And argued each case with my wife;
        And the muscular strength, which it gave to my jaw,
          Has lasted the rest of my life.'
    
        `You are old,' said the youth, `one would hardly suppose
          That your eye was as steady as ever;
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 21 02:27:51 GMT 2017
    - 145.2K bytes
    - Viewed (0)
  4. docs/en/docs/async.md

    That's why it makes a lot of sense to use asynchronous βΈπŸ”€β― code for web APIs.
    
    This kind of asynchronicity is what made NodeJS popular (even though NodeJS is not parallel) and that's the strength of Go as a programming language.
    
    And that's the same level of performance you get with **FastAPI**.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

      }
    
      private fun Snapshot.assertValue(
        index: Int,
        value: String,
      ) {
        getSource(index).use { source ->
          assertThat(sourceAsString(source)).isEqualTo(value)
          assertThat(getLength(index)).isEqualTo(value.length.toLong())
        }
      }
    
      private fun sourceAsString(source: Source) = source.buffer().readUtf8()
    
      private fun Editor.assertInoperable() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

          Pray how did you manage to do it?'
    
        `In my youth,' said his father, `I took to the law,
          And argued each case with my wife;
        And the muscular strength, which it gave to my jaw,
          Has lasted the rest of my life.'
    
        `You are old,' said the youth, `one would hardly suppose
          That your eye was as steady as ever;
    Plain Text
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 29 21:35:03 GMT 2012
    - 145.2K bytes
    - Viewed (0)
Back to top