- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 284 for arrayCopy (0.04 sec)
-
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
// Write Reserved2 (4 bytes) bufferIndex += 4; // Write file ID (16 bytes) byte[] expectedFileId = createTestData(16); System.arraycopy(expectedFileId, 0, buffer, bufferIndex, 16); // Read the buffer int bytesRead = notification.readBytesWireFormat(buffer, 0); // Verify the bytes read
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
// Create a buffer with null terminator within the max length byte[] buffer = new byte[20]; System.arraycopy("Test".getBytes(), 0, buffer, 0, 4); buffer[4] = 0; // null terminator System.arraycopy("String".getBytes(), 0, buffer, 5, 6); String result = testBlock.readString(buffer, 0, buffer.length, 10, false);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java
int strCopyLen = len; int pos = 0; while (count != 0) { if ((count & 1) != 0) { System.arraycopy(strCopy, 0, array, pos, strCopyLen); pos += strCopyLen; } count >>= 1; if (count != 0) { System.arraycopy(strCopy, 0, strCopy, strCopyLen, strCopyLen); strCopyLen <<= 1; } } return new String(array); } @Benchmark
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 3.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
// Combine ciphertext and auth tag for decryption final byte[] input = new byte[ciphertext.length + authTag.length]; System.arraycopy(ciphertext, 0, input, 0, ciphertext.length); System.arraycopy(authTag, 0, input, ciphertext.length, authTag.length); plaintext = cipher.doFinal(input); } else { // Use AES-CCM with Bouncy Castle
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 35.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type2Message.java
System.arraycopy(NTLMSSP_SIGNATURE, 0, type2, 0, 8); writeULong(type2, 8, 2); writeSecurityBuffer(type2, 12, data, target); writeULong(type2, 20, flags); System.arraycopy(challenge != null ? challenge : new byte[8], 0, type2, 24, 8); if (context != null) { System.arraycopy(context, 0, type2, 32, 8); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 13K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java
byte[] buffer = new byte[byteCountValue]; int bufferIndex = 0; byte[] key = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 }; System.arraycopy(key, 0, buffer, bufferIndex, key.length); bufferIndex += key.length; System.arraycopy(domainBytes, 0, buffer, bufferIndex, domainBytes.length); response.readBytesWireFormat(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SigningDigest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.9K bytes - Viewed (0) -
docs/smb3-features/01-smb3-lease-design.md
writeInt4(buffer, offset + 12, dataOffset - offset); // DataOffset // Write context name System.arraycopy(getName().getBytes(), 0, buffer, offset + 16, getName().length()); // Write lease data System.arraycopy(leaseKey.getKey(), 0, buffer, dataOffset, 16); // LeaseKey writeInt4(buffer, dataOffset + 16, leaseState); // LeaseState
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 22K bytes - Viewed (0) -
src/test/java/jcifs/EncodableTest.java
Encodable enc = new ByteEncodable(src, 0, 5); byte[] dst = new byte[4]; // too small assertThrows(ArrayIndexOutOfBoundsException.class, () -> enc.encode(dst, 0), "System.arraycopy should throw for insufficient destination space"); } @Test @DisplayName("encode() throws when dstIndex causes overflow") void encodeThrowsWhenDstIndexCausesOverflow() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java
buffer[68] = (byte) shortNameBytes.length; // shortNameLength System.arraycopy(shortNameBytes, 0, buffer, 70, Math.min(shortNameBytes.length, 24)); // Write filename if (unicode) { byte[] filenameBytes = Strings.getUNIBytes(filename); System.arraycopy(filenameBytes, 0, buffer, 94, filenameBytes.length); } else {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.9K bytes - Viewed (0)