- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 871 for fbytes (0.04 sec)
-
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) -
src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakAcknowledgment.java
@Override protected int writeBytesWireFormat(byte[] dst, int dstIndex) { int start = dstIndex; // 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);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 4.2K bytes - Viewed (0) -
guava/src/com/google/common/hash/HashingInputStream.java
* 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; } /** * mark() is not supported for HashingInputStream * * @return {@code false} always */ @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 2.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/HexdumpTest.java
// Test with negative byte values byte[] data2 = { (byte) 0xFF, (byte) 0xFE, (byte) 0x80, 0x7F }; assertEquals("FF", Hexdump.toHexString(data2, 0, 2)); // 2 chars = 1 byte assertEquals("FFF", Hexdump.toHexString(data2, 0, 3)); // 3 chars = 1.5 bytes (rounds up to 2) assertEquals("FFFE", Hexdump.toHexString(data2, 0, 4)); // 4 chars = 2 bytes
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/internal/smb2/Smb2EncryptionContext.java
SecureKeyManager.secureWipe(keyCopy); } } } private static byte[] longToBytes(final long value) { final byte[] bytes = new byte[8]; for (int i = 0; i < 8; i++) { bytes[i] = (byte) (value >>> 8 * (7 - i)); } return bytes; } /** * Check if key rotation is needed based on configurable usage limits *
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/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java
// status (2 bytes) SMBUtil.writeInt2(0, buffer, bufferIndex); bufferIndex += 2; // converter (2 bytes) SMBUtil.writeInt2(100, buffer, bufferIndex); bufferIndex += 2; // numEntries (2 bytes) SMBUtil.writeInt2(3, buffer, bufferIndex); bufferIndex += 2; // totalAvailableEntries (2 bytes)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.2K bytes - Viewed (0) -
src/test/java/jcifs/util/StringsTest.java
@Test @DisplayName("fromUNIBytes should decode UTF-16LE bytes to string") void testFromUNIBytes() { // Given byte[] bytes = TEST_STRING.getBytes(StandardCharsets.UTF_16LE); // When String result = Strings.fromUNIBytes(bytes, 0, bytes.length); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
byte[] buffer = new byte[6]; close.writeParameterWordsWireFormat(buffer, 0); // first two bytes encode fid 42 assertEquals((byte) 42, buffer[0]); assertEquals((byte) 0, buffer[1]); // remaining 4 bytes should all be 0xFF according to writeUTime for (int i = 2; i < 6; i++) { assertEquals((byte) 0xFF, buffer[i], "byte %d should be 0xFF".formatted(i));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0) -
cmd/bucket-stats.go
// such as pending, failed and completed bytes in total for a bucket // remote target type BucketReplicationStat struct { // Pending size in bytes // PendingSize int64 `json:"pendingReplicationSize"` // Completed size in bytes ReplicatedSize int64 `json:"completedReplicationSize"` // Total Replica size in bytes ReplicaSize int64 `json:"replicaSize"` // Collect stats for failures
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 13.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java
buffer.put(domainNameBytes); buffer.put((byte) 0x00); // Null terminator byte[] byteData = buffer.array(); // Call the method int bytesRead = response.readBytesWireFormat(byteData, 0); // Assertions // readBytesWireFormat returns bytes processed up to null terminator assertEquals(14, bytesRead); // 8 bytes key + 6 bytes domain name
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0)