Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 284 for arrayCopy (0.04 sec)

  1. src/main/java/jcifs/smb/SmbTransportImpl.java

                    System.arraycopy(this.sbuf, 4, negoReqBuffer, 0, reqLen);
                }
    
                negotiatePeek();
    
                r = smb2neg.initResponse(getContext());
                final int respLen = r.decode(this.sbuf, 4);
                r.received();
    
                if (doPreauth) {
                    negoRespBuffer = new byte[respLen];
                    System.arraycopy(this.sbuf, 4, negoRespBuffer, 0, respLen);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/io/FileUtil.java

                    size += len;
                    if (size == bufferSize) {
                        final char[] newBuf = new char[bufferSize + initialCapacity];
                        System.arraycopy(buf, 0, newBuf, 0, bufferSize);
                        buf = newBuf;
                        bufferSize += initialCapacity;
                    }
                }
                return new String(buf, 0, size);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

            SessionRequestPacket readPacket = new SessionRequestPacket(mockConfig);
            readPacket.length = written;
    
            byte[] readBuffer = new byte[256];
            System.arraycopy(buffer, 0, readBuffer, 10, written);
    
            int bytesRead = readPacket.readTrailerWireFormat(bais, readBuffer, 10);
    
            assertEquals(written, bytesRead);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

        }
    
        @Test
        @DisplayName("Test decode operation")
        void testDecode() {
            byte[] buffer = new byte[1024];
            // Fill with basic SMB header structure
            System.arraycopy(new byte[] { (byte) 0xFF, 'S', 'M', 'B' }, 0, buffer, 0, 4);
            buffer[4] = 1; // wordCount
            buffer[7] = 0; // byteCount low
            buffer[8] = 0; // byteCount high
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ListsTest.java

    import static com.google.common.collect.testing.IteratorFeature.UNMODIFIABLE;
    import static com.google.common.truth.Truth.assertThat;
    import static java.lang.System.arraycopy;
    import static java.util.Arrays.asList;
    import static java.util.Collections.emptyList;
    import static java.util.Collections.nCopies;
    import static java.util.Collections.singletonList;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/HMACT64Test.java

                    byte[] b = invocation.getArgument(0);
                    int off = invocation.getArgument(1);
                    int l = invocation.getArgument(2);
                    System.arraycopy(expectedOutput, 0, b, off, l);
                    return l;
                });
    
                HMACT64 hmac = new HMACT64(TEST_KEY);
                int bytesWritten = hmac.engineDigest(buffer, 0, expectedOutput.length);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/netbios/Name.java

                dst[dstIndex] = (byte) 0x00;
                return 1;
            }
    
            // copy new scope in
            dst[dstIndex] = (byte) '.';
            dstIndex++;
            try {
                System.arraycopy(scope.getBytes(Name.OEM_ENCODING), 0, dst, dstIndex, scope.length());
            } catch (final UnsupportedEncodingException uee) {}
            dstIndex += scope.length();
    
            dst[dstIndex++] = (byte) 0x00;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

            byte[] notificationData = createSingleNotificationBuffer("offset_test.txt", FileNotifyInformation.FILE_ACTION_MODIFIED);
            byte[] buffer = new byte[offset + notificationData.length];
            System.arraycopy(notificationData, 0, buffer, offset, notificationData.length);
    
            int result = response.readParametersWireFormat(buffer, offset, notificationData.length);
    
            assertTrue(result > 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

                int fileNameLength = SMBUtil.readInt4(outputBuffer, offset + 8);
    
                // Extract filename
                byte[] fileNameBytes = new byte[fileNameLength];
                System.arraycopy(outputBuffer, offset + 12, fileNameBytes, 0, fileNameLength);
                String fileName = new String(fileNameBytes, StandardCharsets.UTF_16LE);
    
                // Convert action to our enum
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            byte[] tempBuffer = new byte[50];
            original.encode(tempBuffer, 0);
    
            // Copy only the first 36 bytes (what decode reads)
            byte[] buffer = new byte[36];
            System.arraycopy(tempBuffer, 0, buffer, 0, 36);
    
            // Decode
            int bytesRead = fileBasicInfo.decode(buffer, 0, 36);
    
            // Verify
            assertEquals(36, bytesRead);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top