- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 1,352 for 1byte (1.12 sec)
-
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
// Given - Create a complete SMB2 message with header byte[] buffer = new byte[512]; int headerStart = 0; int bodyStart = Smb2Constants.SMB2_HEADER_LENGTH; // Write SMB2 header (64 bytes) // Protocol ID System.arraycopy(new byte[] { (byte) 0xFE, 'S', 'M', 'B' }, 0, buffer, headerStart, 4); // Structure size (64)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComLockingAndX.java
/** * SMB1 COM_LOCKING_ANDX command implementation. * * This command locks or unlocks byte ranges within a file. It can also * be used to break oplocks and change oplock levels. * * @author mbechler */ public class SmbComLockingAndX extends AndXServerMessageBlock { private int fid; private byte typeOfLock; private byte newOpLockLevel; private long timeout; private LockingAndXRange[] locks;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/HandleGuid.java
*/ public HandleGuid(UUID uuid) { this.guid = uuid; } /** * Convert the GUID to byte array for wire format (little-endian as per MS-SMB2) * @return 16-byte array representing the GUID in SMB wire format */ public byte[] toBytes() { byte[] result = new byte[16]; ByteBuffer bb = ByteBuffer.wrap(result).order(java.nio.ByteOrder.LITTLE_ENDIAN);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
void testReadBytesWireFormatNegativeAsUnsigned() { // Given byte[] buffer = new byte[10]; // Write -1 which will be read as 65535 unsigned buffer[0] = (byte) 0xFF; buffer[1] = (byte) 0xFF; // When & Then SMBProtocolDecodingException exception =
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvTimestampTest.java
* This tests the underlying SMBUtil.readInt8 behavior. */ @Test public void testGetTimestampNegative() { long expectedTimestamp = -1L; // Represents all bits set to 1 for an 8-byte long byte[] rawBytes = new byte[8]; SMBUtil.writeInt8(expectedTimestamp, rawBytes, 0); AvTimestamp avTimestamp = new AvTimestamp(rawBytes); assertEquals(expectedTimestamp, avTimestamp.getTimestamp()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java
assertCrc(0x62a8ab43, fulls); } public void testFull100() { // Test 100 byte array of 0xFF. byte[] fulls = new byte[100]; Arrays.fill(fulls, (byte) 0xFF); assertCrc(0xbc753add, fulls); } public void testAscending() { // Test 32 byte arrays of ascending. byte[] ascending = new byte[32]; for (int i = 0; i < 32; i++) { ascending[i] = (byte) i; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 6.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java
void testReadParametersWireFormat() { byte[] buffer = new byte[10]; int result = response.readParametersWireFormat(buffer, 0, 2); assertEquals(2, result); } @Test @DisplayName("Should write setup wire format") void testWriteSetupWireFormat() { byte[] buffer = new byte[100]; int result = response.writeSetupWireFormat(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacDataInputStreamTest.java
byte[] data = new byte[] { (byte) 0xF0, (byte) 0xDE, (byte) 0xBC, (byte) 0x9A, 0x78, 0x56, 0x34, 0x12 }; PacDataInputStream pdis = createInputStream(data); assertEquals(0x123456789ABCDEF0L, pdis.readLong()); } @Test public void testReadUnsignedByte() throws IOException { byte[] data = new byte[] { (byte) 0xFF };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 9.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java
static final byte[] header = { (byte) 0xFF, (byte) 'S', (byte) 'M', (byte) 'B', (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type3Message.java
private static final SecureRandom RANDOM = new SecureRandom(); private byte[] lmResponse; private byte[] ntResponse; private String domain; private String user; private String workstation; private byte[] masterKey = null; private byte[] sessionKey = null; static { DEFAULT_FLAGS = NTLMSSP_NEGOTIATE_NTLM
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 24.1K bytes - Viewed (0)