Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 284 for arrayCopy (0.16 sec)

  1. src/main/java/jcifs/smb1/smb1/TransCallNamedPipe.java

                if (LogStream.level >= 3) {
                    log.println("TransCallNamedPipe data too long for buffer");
                }
                return 0;
            }
            System.arraycopy(pipeData, pipeDataOff, dst, dstIndex, pipeDataLen);
            return pipeDataLen;
        }
    
        @Override
        int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtlmUtilTest.java

            Encdec.enc_uint32le(0x00000000, blob, 4); // Reserved
            Encdec.enc_uint64le(nanos1601, blob, 8);
            System.arraycopy(clientChallenge, 0, blob, 16, 8);
            Encdec.enc_uint32le(0x00000000, blob, 24); // Unknown
            System.arraycopy(avPairs, 0, blob, 28, avPairsLength);
            Encdec.enc_uint32le(0x00000000, blob, 28 + avPairsLength);
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java

            for (final DialectVersion ver : dvs) {
                this.dialects[i] = ver.getDialect();
                i++;
            }
    
            if (config.getMaximumVersion().atLeast(DialectVersion.SMB210)) {
                System.arraycopy(config.getMachineId(), 0, this.clientGuid, 0, this.clientGuid.length);
            }
    
            final List<NegotiateContextRequest> negoContexts = new LinkedList<>();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/TransTransactNamedPipe.java

                if (LogStream.level >= 3) {
                    log.println("TransTransactNamedPipe data too long for buffer");
                }
                return 0;
            }
            System.arraycopy(pipeData, pipeDataOff, dst, dstIndex, pipeDataLen);
            return pipeDataLen;
        }
    
        @Override
        int readParametersWireFormat(final byte[] buffer, final int bufferIndex, final int len) {
            return 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakResponse.java

            // Flags (4 bytes)
            this.flags = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
    
            // LeaseKey (16 bytes)
            byte[] keyBytes = new byte[16];
            System.arraycopy(buffer, bufferIndex, keyBytes, 0, 16);
            this.leaseKey = new Smb2LeaseKey(keyBytes);
            bufferIndex += 16;
    
            // LeaseState (4 bytes)
            this.leaseState = SMBUtil.readInt4(buffer, bufferIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/fscc/FsctlPipeWaitRequest.java

            dstIndex += 4;
    
            dst[dstIndex] = (byte) (this.timeoutSpecified ? 0x1 : 0x0);
            dstIndex++;
            dstIndex++; // Padding
    
            System.arraycopy(this.nameBytes, 0, dst, dstIndex, this.nameBytes.length);
            dstIndex += this.nameBytes.length;
    
            return dstIndex - start;
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            when(mockContext.getConfig()).thenReturn(mockConfig);
    
            // Mock random for predictable salt generation
            doAnswer(invocation -> {
                byte[] buffer = invocation.getArgument(0);
                System.arraycopy(testSalt, 0, buffer, 0, Math.min(buffer.length, testSalt.length));
                return null;
            }).when(mockRandom).nextBytes(any(byte[].class));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

                }
                System.arraycopy(Strings.getUNIBytes(str), 0, dst, dstIndex, str.length() * 2);
                dstIndex += str.length() * 2;
                dst[dstIndex] = (byte) '\0';
                dstIndex++;
                dst[dstIndex++] = (byte) '\0';
            } else {
                final byte[] b = Strings.getOEMBytes(str, this.getConfig());
                System.arraycopy(b, 0, dst, dstIndex, b.length);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java

            assertEquals(6, written, "writeParameterWordsWireFormat should return 6");
            // Only compare the first 6 bytes that were actually written
            byte[] actualWritten = new byte[6];
            System.arraycopy(buffer, 0, actualWritten, 0, 6);
            assertArrayEquals(expected, actualWritten, "wire format should match expectation");
        }
    
        static Stream<Arguments> validParams() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/util/MD4.java

            count += len; // update number of bytes
            final int partLen = BLOCK_LENGTH - bufferNdx;
            int i = 0;
            if (len >= partLen) {
                System.arraycopy(input, offset, buffer, bufferNdx, partLen);
    
                transform(buffer, 0);
    
                for (i = partLen; i + BLOCK_LENGTH - 1 < len; i += BLOCK_LENGTH) {
                    transform(input, offset + i);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.6K bytes
    - Viewed (0)
Back to top