Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 943 for bufLen (0.08 sec)

  1. okhttp-logging-interceptor/src/test/java/okhttp3/logging/IsProbablyUtf8Test.kt

    import okhttp3.logging.internal.isProbablyUtf8
    import okio.Buffer
    import org.junit.jupiter.api.Test
    
    class IsProbablyUtf8Test {
      @Test fun isProbablyUtf8() {
        assertThat(Buffer().isProbablyUtf8()).isTrue()
        assertThat(Buffer().writeUtf8("abc").isProbablyUtf8()).isTrue()
        assertThat(Buffer().writeUtf8("new\r\nlines").isProbablyUtf8()).isTrue()
        assertThat(Buffer().writeUtf8("white\t space").isProbablyUtf8()).isTrue()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/UppercaseResponseInterceptor.kt

            val read = delegate.read(buffer, byteCount)
            if (read != -1L) {
              sink.write(buffer.readByteString().toAsciiUppercase())
            }
            return read
          }
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache2/RelayTest.kt

        Callable {
          val buffer = Buffer()
          while (source!!.read(buffer, 16384) != -1L) {
          }
          source.close()
          buffer.readByteString()
        }
    
      private fun assertFile(
        prefix: ByteString,
        upstreamSize: Long,
        metadataSize: Int,
        upstream: String?,
        metadata: ByteString?,
      ) {
        val source = file.source().buffer()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java

            assertEquals(getField(cmd, "timeout"), (long) SMBUtil.readInt4(buffer, 4));
            assertEquals(1, SMBUtil.readInt2(buffer, 8));
            assertEquals(1, SMBUtil.readInt2(buffer, 10));
        }
    
        /**
         * Test that a large file lock (bit 0x10 set) is encoded and decoded correctly.
         */
        @ParameterizedTest
        @ValueSource(ints = { 0x10, 0x11 })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/dfs/Referral.java

            bufferIndex += 2;
            this.size = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.serverType = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            this.rflags = SMBUtil.readInt2(buffer, bufferIndex);
            bufferIndex += 2;
            if (this.version == 3) {
                this.proximity = SMBUtil.readInt2(buffer, bufferIndex);
                bufferIndex += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java

            bufferIndex += 8;
    
            this.allocationSize = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            this.endOfFile = SMBUtil.readInt8(buffer, bufferIndex);
            bufferIndex += 8;
    
            this.fileAttributes = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            bufferIndex += 4; // Reserved2
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponse.java

            info.allocationSize = readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            info.endOfFile = readInt8(buffer, bufferIndex);
            bufferIndex += 8;
            info.numberOfLinks = readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            info.deletePending = (buffer[bufferIndex] & 0xFF) > 0;
            bufferIndex++;
            info.directory = (buffer[bufferIndex++] & 0xFF) > 0;
            this.info = info;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

            buffer.putInt(4, 8); // Offset
    
            System.arraycopy(content, 0, data, 8, content.length); // Place content at offset 8
    
            byte[] result = NtlmMessage.readSecurityBuffer(data, 0);
            assertArrayEquals(content, result, "Should read security buffer content correctly.");
    
            // Test with zero length buffer
            buffer.putShort(0, (short) 0);
            buffer.putShort(2, (short) 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

            byte[] buffer = new byte[1024];
    
            request.writeBytesWireFormat(buffer, 0);
    
            // Control code is at offset 4 (4 bytes)
            int encodedControlCode = (buffer[4] & 0xFF) | ((buffer[5] & 0xFF) << 8) | ((buffer[6] & 0xFF) << 16) | ((buffer[7] & 0xFF) << 24);
            assertEquals(testControlCode, encodedControlCode);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponse.java

        protected int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) {
            final int start = bufferIndex;
    
            buffer[bufferIndex] = (byte) 0x00; // Reserved
            bufferIndex++;
            buffer[bufferIndex++] = (byte) 0x00; // Reserved
            buffer[bufferIndex++] = (byte) 0x00; // Reserved
    
            this.totalParameterCount = SMBUtil.readInt4(buffer, bufferIndex);
            if (this.bufDataStart == 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.1K bytes
    - Viewed (0)
Back to top