- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 1,069 for nBytes (0.04 sec)
-
src/test/java/jcifs/smb1/smb1/SmbComNtTransactionResponseTest.java
void testReadParameterWordsWireFormat_bufDataStartIsZero() { // Test case when bufDataStart is initially 0. byte[] buffer = new byte[37]; // 3 reserved + 8*4 bytes for int4 values + 2 bytes for setupCount int bufferIndex = 0; // Reserved bytes buffer[bufferIndex++] = 0x00; buffer[bufferIndex++] = 0x00; buffer[bufferIndex++] = 0x00; // totalParameterCount = 10
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakAcknowledgment.java
// StructureSize (2 bytes) - must be 36 SMBUtil.writeInt2(STRUCTURE_SIZE, dst, dstIndex); dstIndex += 2; // Reserved (2 bytes) SMBUtil.writeInt2(0, dst, dstIndex); dstIndex += 2; // Flags (4 bytes) SMBUtil.writeInt4(flags, dst, dstIndex); dstIndex += 4; // LeaseKey (16 bytes) leaseKey.encode(dst, dstIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
byte[] nameBytes = originalFileName.getBytes(StandardCharsets.UTF_16LE); byte[] buffer = new byte[100]; buffer[0] = 1; // replaceIfExists = true // Skip 7 reserved bytes (1-7) // Skip 8 bytes for RootDirectory (8-15) SMBUtil.writeInt4(nameBytes.length, buffer, 16); System.arraycopy(nameBytes, 0, buffer, 20, nameBytes.length);
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/main/java/org/codelibs/fess/util/MemoryUtil.java
displaySize = new BigDecimal(size).divide(BigDecimal.valueOf(1000)) + "KB"; } else { displaySize = size + "bytes"; } return displaySize; } /** * Gets the currently used memory in bytes. * * @return used memory in bytes */ public static long getUsedMemory() { final Runtime runtime = Runtime.getRuntime();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java
*/ @Test void testReadParametersWireFormat() { NetShareEnumResponse response = new NetShareEnumResponse(); // Parameters: status (2 bytes), converter (2 bytes), numEntries (2 bytes), totalAvailableEntries (2 bytes) byte[] buffer = { 0x00, 0x00, // status = 0 (Success) 0x12, 0x34, // converter = 0x3412 0x02, 0x00, // numEntries = 2
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0) -
guava/src/com/google/common/hash/HashingInputStream.java
return b; } /** * Reads the specified bytes of data from the underlying input stream and updates the hasher with * the bytes read. */ @Override @CanIgnoreReturnValue public int read(byte[] bytes, int off, int len) throws IOException { int numOfBytesRead = in.read(bytes, off, len); if (numOfBytesRead != -1) { hasher.putBytes(bytes, off, numOfBytesRead); } return numOfBytesRead; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 2.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/Utf8Test.java
} private static byte[] toByteArray(int... bytes) { byte[] realBytes = new byte[bytes.length]; for (int i = 0; i < bytes.length; i++) { realBytes[i] = (byte) bytes[i]; } return realBytes; } private static void assertWellFormed(int... bytes) { assertTrue(Utf8.isWellFormed(toByteArray(bytes))); } private static void assertNotWellFormed(int... bytes) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
* unsigned time correctly. The last write time is zero which should be * encoded as four 0xFF bytes by {@code writeUTime}. */ @ParameterizedTest(name = "fid={0}, lastWriteTime={1}") @MethodSource("validParams") @DisplayName("happy: writeParameterWordsWireFormat writes correct bytes") void testWriteParameterWordsWireFormat(int fid, long lastWriteTime, byte[] expected) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
* * @return nonce appropriate for the dialect (16 bytes for GCM, 12 bytes for CCM) */ public byte[] generateNonce() { final byte[] nonce = new byte[isGCMCipher() ? 16 : 12]; if (isGCMCipher()) { // SMB 3.1.1 GCM: 96-bit random/fixed + 32-bit counter for guaranteed uniqueness // Fill first 12 bytes with random data secureRandom.nextBytes(nonce);
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/org/codelibs/fess/app/web/api/admin/stats/ApiAdminStatsAction.java
public short percent; /** Used space in bytes */ public long used; /** Filesystem path */ public String path; /** Free space in bytes */ public long free; /** Total space in bytes */ public long total; /** Usable space in bytes */ public long usable; } /**
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 19.7K bytes - Viewed (0)