Search Options

Results per page
Sort
Preferred Languages
Advance

Results 371 - 380 of 979 for buffer (0.04 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbComWriteTest.java

            // Arrange
            int fid = 0x1234;
            int offset = 100;
            int remaining = 50;
            byte[] buffer = new byte[100];
            int off = 10;
            int len = 40;
    
            // Act
            SmbComWrite write = new SmbComWrite(fid, offset, remaining, buffer, off, len);
    
            // Assert
            assertEquals(fid, getFieldValue(write, "fid"), "FID should match constructor arg");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/FormBodyTest.kt

        val buffer = Buffer()
        body.writeTo(buffer)
        assertThat(buffer.readUtf8()).isEqualTo(expected)
      }
    
      @Test
      fun buildEmptyForm() {
        val body = FormBody.Builder().build()
        val expected = ""
        assertThat(body.contentLength()).isEqualTo(expected.length.toLong())
        val buffer = Buffer()
        body.writeTo(buffer)
        assertThat(buffer.readUtf8()).isEqualTo(expected)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/hash/AbstractByteHasher.java

        update(b, 0, b.length);
      }
    
      /** Updates this hasher with {@code len} bytes starting at {@code off} in the given buffer. */
      protected void update(byte[] b, int off, int len) {
        for (int i = off; i < off + len; i++) {
          update(b[i]);
        }
      }
    
      /** Updates this hasher with bytes from the given buffer. */
      protected void update(ByteBuffer b) {
        if (b.hasArray()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 12:40:17 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyJvmTest.kt

    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.ResponseBody.Companion.toResponseBody
    import okhttp3.internal.and
    import okio.Buffer
    import okio.BufferedSource
    import okio.ByteString
    import okio.ByteString.Companion.decodeHex
    import okio.ForwardingSource
    import okio.buffer
    import org.junit.jupiter.api.Test
    
    class ResponseBodyJvmTest {
      @Test
      fun stringEmpty() {
        val body = body("")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

                readParams.invoke(cancel, buffer, 0);
    
                Method readBytes = SmbComNtCancel.class.getDeclaredMethod("readBytesWireFormat", byte[].class, int.class);
                readBytes.setAccessible(true);
                readBytes.invoke(cancel, buffer, 0);
    
                // Then - buffer should remain unchanged
                assertArrayEquals(originalBuffer, buffer);
            }
    
            @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

            assertTrue(result > 0);
            assertTrue(result < dst.length);
            assertEquals((byte) 0x04, dst[0]); // First buffer format byte
        }
    
        /**
         * Test writeBytesWireFormat with different buffer offsets
         */
        @Test
        @DisplayName("Test writeBytesWireFormat with different buffer offsets")
        public void testWriteBytesWireFormatWithOffset() {
            // Given
            String oldFileName = "old.txt";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescTest.java

        void testReadSetupWireFormat() {
            querySecurityDesc = new NtTransQuerySecurityDesc(mockConfig, 0x1234, OWNER_SECURITY_INFORMATION);
            byte[] buffer = new byte[100];
    
            int result = querySecurityDesc.readSetupWireFormat(buffer, 10, 50);
    
            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("Test readParametersWireFormat returns zero")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt

            .build()
        }.also {
          assertThat(it).hasMessage("Content-Encoding already set: gzip")
        }
      }
    
      private fun bodyToHex(body: RequestBody): String {
        val buffer = Buffer()
        body.writeTo(buffer)
        return buffer.readByteString().hex()
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 19K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/timer/MonitorTarget.java

         */
        public MonitorTarget() {
            // Default constructor
        }
    
        /**
         * Appends a key-value pair to the buffer in JSON format.
         *
         * @param buf the string buffer to append to
         * @param key the key name
         * @param supplier the value supplier
         * @return the updated buffer
         */
        protected StringBuilder append(final StringBuilder buf, final String key, final Supplier<Object> supplier) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContext.java

         * @see jcifs.Decodable#decode(byte[], int, int)
         */
        @Override
        public int decode(final byte[] buffer, int bufferIndex, final int len) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
            final int nalgos = SMBUtil.readInt2(buffer, bufferIndex);
            final int nsalt = SMBUtil.readInt2(buffer, bufferIndex + 2);
            bufferIndex += 4;
    
            this.hashAlgos = new int[nalgos];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.4K bytes
    - Viewed (0)
Back to top