Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 284 for arrayCopy (0.04 sec)

  1. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

            }
            if (length < MIN_COMPRESSION_SIZE) {
                log.debug("Data too small for compression ({} bytes), returning uncompressed", length);
                byte[] result = new byte[length];
                System.arraycopy(data, offset, result, 0, length);
                return result;
            }
            if (length > MAX_COMPRESSION_SIZE) {
                throw new CIFSException("Data too large for compression: " + length + " bytes");
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/DoubleArrayAsListTest.java

        }
      }
    
      private static Double[] concat(Double[] left, Double[] right) {
        Double[] result = new Double[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
        return result;
      }
    
      public abstract static class TestDoubleListGenerator implements TestListGenerator<Double> {
        @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/Smb3KeyDerivation.java

            // all fixed inputs go into the suffix:
            // + label
            System.arraycopy(label, 0, suffix, 0, label.length);
            // + 1 byte 0x00
            // + context
            System.arraycopy(context, 0, suffix, label.length + 1, context.length);
            // + 4 byte (== r bits) big endian encoding of L
            suffix[suffix.length - 1] = (byte) 128;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContext.java

                    SMBUtil.writeInt2(hashAlgo, dst, dstIndex);
                    dstIndex += 2;
                }
            }
    
            if (this.salt != null) {
                System.arraycopy(this.salt, 0, dst, dstIndex, this.salt.length);
                dstIndex += this.salt.length;
            }
    
            return dstIndex - start;
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

                }
                SMBUtil.writeInt4(this.signSequence, data, index);
                update(data, offset, length);
                System.arraycopy(digest(), 0, data, index, 8);
                if (this.bypass) {
                    this.bypass = false;
                    System.arraycopy("BSRSPYL ".getBytes(), 0, data, index, 8);
                }
            } catch (final Exception ex) {
                log.error("Signature failed", ex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/util/SecureCredentialStorage.java

                // Combine IV and ciphertext
                byte[] result = new byte[GCM_IV_SIZE + ciphertext.length];
                System.arraycopy(iv, 0, result, 0, GCM_IV_SIZE);
                System.arraycopy(ciphertext, 0, result, GCM_IV_SIZE, ciphertext.length);
    
                return result;
    
            } finally {
                // Securely wipe plaintext bytes - guaranteed by try-finally
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java

            if (this.blob != null) {
                System.arraycopy(this.blob, 0, dst, dstIndex, this.blob.length);
                dstIndex += this.blob.length;
            } else {
                System.arraycopy(this.lmHash, 0, dst, dstIndex, this.lmHash.length);
                dstIndex += this.lmHash.length;
                System.arraycopy(this.ntHash, 0, dst, dstIndex, this.ntHash.length);
                dstIndex += this.ntHash.length;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/netbios/NodeStatusResponse.java

            srcIndex++;
            // gotta read the mac first so we can populate addressArray with it
            System.arraycopy(src, srcIndex + namesLength, this.macAddress, 0, 6);
            srcIndex += readNodeNameArray(src, srcIndex);
            this.stats = new byte[statsLength];
            System.arraycopy(src, srcIndex, this.stats, 0, statsLength);
            srcIndex += statsLength;
            return srcIndex - start;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            byte[] nameBytes = new byte[4];
            System.arraycopy(buffer, 16, nameBytes, 0, 4);
            assertArrayEquals("RqLs".getBytes(), nameBytes);
    
            // Verify lease key is encoded at offset 24 (after header + name + padding)
            byte[] encodedKey = new byte[16];
            System.arraycopy(buffer, 24, encodedKey, 0, 16);
            assertArrayEquals(testKey.getKey(), encodedKey);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/util/EncdecTest.java

            byte[] buffer = new byte[testString.length()];
    
            // When - Manual string encoding using individual bytes
            byte[] strBytes = testString.getBytes();
            System.arraycopy(strBytes, 0, buffer, 0, strBytes.length);
    
            // Then
            String decoded = new String(buffer);
            assertEquals(testString, decoded);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
Back to top