- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 284 for arrayCopy (0.04 sec)
-
src/test/java/jcifs/ntlmssp/av/AvPairsTest.java
int pos = 0; System.arraycopy(avFlagsData, 0, fullData, pos, avFlagsData.length); pos += avFlagsData.length; System.arraycopy(avTimestampData, 0, fullData, pos, avTimestampData.length); pos += avTimestampData.length; System.arraycopy(avTargetNameData, 0, fullData, pos, avTargetNameData.length); pos += avTargetNameData.length; System.arraycopy(eolData, 0, fullData, pos, eolData.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
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/ntlmssp/Type2Message.java
offset += 2; System.arraycopy(domain, 0, targetInfo, offset, domainLength); offset += domainLength; } if (serverLength > 0) { writeUShort(targetInfo, offset, 1); offset += 2; writeUShort(targetInfo, offset, serverLength); offset += 2; System.arraycopy(server, 0, targetInfo, offset, serverLength); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
assertEquals(fileName.getBytes(StandardCharsets.UTF_16LE).length, nameLength); // Verify file name byte[] nameBytes = new byte[nameLength]; System.arraycopy(buffer, 20, nameBytes, 0, nameLength); String decodedName = new String(nameBytes, StandardCharsets.UTF_16LE); assertEquals(fileName, decodedName); // Verify bytes written
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/util/ByteEncodableTest.java
// The error should occur when System.arraycopy is called. ByteEncodable encodable = new ByteEncodable(data, 1, 2); // off=1, len=2, data.length=2. 1+2 > 2 byte[] dest = new byte[5]; // Expect IndexOutOfBoundsException from System.arraycopy assertThrows(IndexOutOfBoundsException.class, () -> { encodable.encode(dest, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmUtil.java
Encdec.enc_uint32le(0x00000000, temp, 4); // Reserved Encdec.enc_uint64le(nanos1601, temp, 8); System.arraycopy(clientChallenge, 0, temp, 16, 8); Encdec.enc_uint32le(0x00000000, temp, 24); // Unknown if (avPairs != null) { System.arraycopy(avPairs, 0, temp, 28, avPairsLength); } Encdec.enc_uint32le(0x00000000, temp, 28 + avPairsLength); // mystery bytes!
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
String fileName = "test.txt"; byte[] fileNameBytes = fileName.getBytes("UnicodeLittleUnmarked"); SMBUtil.writeInt4(fileNameBytes.length, buffer, notifyOffset + 8); // FileNameLength System.arraycopy(fileNameBytes, 0, buffer, notifyOffset + 12, fileNameBytes.length); // When int bytesRead = response.readBytesWireFormat(buffer, offset); // Then assertTrue(bytesRead > 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java
void testReadDataWireFormatWithValidLength() throws SMBProtocolDecodingException { // Prepare test data byte[] sourceData = { 10, 20, 30, 40, 50 }; byte[] buffer = new byte[100]; System.arraycopy(sourceData, 0, buffer, 10, sourceData.length); // Execute int result = response.readDataWireFormat(buffer, 10, sourceData.length); // Verify assertEquals(sourceData.length, result);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java
} byte[] packet = new byte[totalLen]; System.arraycopy(header, 0, packet, 0, header.length); System.arraycopy(body, 0, packet, SMB2_HEADER_LENGTH, body.length); if (ctxOffsetFromHeader != null && ctxBytes != null) { System.arraycopy(ctxBytes, 0, packet, ctxOffsetFromHeader, ctxBytes.length); } return packet; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0)