Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for ByteCount (0.06 sec)

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

        streamId: Int,
        byteCount: Long,
      ) {
        var byteCount = byteCount
        while (byteCount > 0L) {
          val length = minOf(maxFrameSize.toLong(), byteCount)
          byteCount -= length
          frameHeader(
            streamId = streamId,
            length = length.toInt(),
            type = TYPE_CONTINUATION,
            flags = if (byteCount == 0L) FLAG_END_HEADERS else 0,
          )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 11K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt

        logWithTime("requestBodyStart")
    
        delegate.requestBodyStart(call)
      }
    
      override fun requestBodyEnd(
        call: Call,
        byteCount: Long,
      ) {
        logWithTime("requestBodyEnd: byteCount=$byteCount")
    
        delegate.requestBodyEnd(call, byteCount)
      }
    
      override fun requestFailed(
        call: Call,
        ioe: IOException,
      ) {
        logWithTime("requestFailed: $ioe")
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

            wordCount /= 2;
            dst[start] = (byte) (wordCount & 0xFF);
    
            byteCount = writeBytesWireFormat(dst, dstIndex + 2);
            dst[dstIndex] = (byte) (byteCount & 0xFF);
            dstIndex++;
            dst[dstIndex++] = (byte) (byteCount >> 8 & 0xFF);
            dstIndex += byteCount;
    
            /* Normally, without intervention everything would batch
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

          }
        }
    
        override fun read(
          sink: Buffer,
          byteCount: Long,
        ): Long {
          require(byteCount >= 0L) { "byteCount < 0: $byteCount" }
          check(!closed) { "closed" }
          if (bytesRemaining == 0L) return -1
    
          val read = super.read(sink, minOf(bytesRemaining, byteCount))
          if (read == -1L) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

            result.writeDecimalLong(xy - 80L)
          }
        }
        while (byteCount < limit) {
          result.writeByte(dot)
          result.writeDecimalLong(readVariableLengthLong())
        }
        return result.readUtf8()
      }
    
      fun readRelativeObjectIdentifier(): String {
        val result = Buffer()
        val dot = '.'.code.toByte().toInt()
        while (byteCount < limit) {
          if (result.size > 0) {
            result.writeByte(dot)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache2/FileOperator.kt

      private val fileChannel: FileChannel,
    ) {
      /** Write [byteCount] bytes from [source] to the file at [pos]. */
      @Throws(IOException::class)
      fun write(
        pos: Long,
        source: Buffer,
        byteCount: Long,
      ) {
        if (byteCount < 0L || byteCount > source.size) {
          throw IndexOutOfBoundsException()
        }
        var mutablePos = pos
        var mutableByteCount = byteCount
    
        while (mutableByteCount > 0L) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java

            serverData.encryptionKeyLength = 8;
            response.byteCount = 15; // 8 bytes key + 6 bytes "DOMAIN" + 1 null terminator
    
            // Prepare byte array
            byte[] encryptionKey = "12345678".getBytes();
            byte[] domainNameBytes = "DOMAIN".getBytes(ServerMessageBlock.OEM_ENCODING);
            ByteBuffer buffer = ByteBuffer.allocate(response.byteCount);
            buffer.put(encryptionKey);
            buffer.put(domainNameBytes);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

            this.wordCount /= 2;
            dst[start] = (byte) (this.wordCount & 0xFF);
    
            this.byteCount = writeBytesWireFormat(dst, dstIndex + 2);
            dst[dstIndex] = (byte) (this.byteCount & 0xFF);
            dstIndex++;
            dst[dstIndex++] = (byte) (this.byteCount >> 8 & 0xFF);
            dstIndex += this.byteCount;
    
            /*
             * Normally, without intervention everything would batch
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

                }
                bufferIndex += wordCount * 2;
            }
    
            byteCount = readInt2(buffer, bufferIndex);
            bufferIndex += 2;
    
            if (byteCount != 0) {
                int n = readBytesWireFormat(buffer, bufferIndex);
                if ((n != byteCount) && (LogStream.level >= 5)) {
                    log.println("byteCount=" + byteCount + " but readBytesWireFormat returned " + n);
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

            assertTrue(result.contains("byteCount=8"));
            assertTrue(result.contains("oemDomainName=TEST_DOMAIN"));
        }
    
        // Helper method to set protected byteCount field using reflection
        private void setByteCount(SmbComNegotiateResponse response, int byteCount) {
            try {
                Field field = response.getClass().getSuperclass().getDeclaredField("byteCount");
                field.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top