- Sort Score
- Result 10 results
- Languages All
Results 251 - 260 of 344 for 0xff (0.02 sec)
-
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
@DisplayName("Should handle large buffer decoding") void testLargeBufferDecode() throws SMBProtocolDecodingException { byte[] largeBuffer = new byte[65536]; Arrays.fill(largeBuffer, (byte) 0xFF); TestCreateContextResponse response = new TestCreateContextResponse("LARGE_BUFFER_TEST".getBytes(StandardCharsets.UTF_8)); int result = response.decode(largeBuffer, 1000, 5000);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
if (protocolId == 0x424D53FF) { // 0xFF 'S' 'M' 'B' // SMB1 if (structureSize < 32 || structureSize > 65535) { failedValidations.incrementAndGet(); throw new SmbException("Invalid SMB1 header size: " + structureSize); } } // Check SMB2/3 signature else if (protocolId == 0x424D53FE) { // 0xFE 'S' 'M' 'B' // SMB2/3
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java
request = new Smb2SetInfoRequest(mockConfig); // Set all fields byte[] newFileId = new byte[16]; for (int i = 0; i < 16; i++) { newFileId[i] = (byte) (0xFF - i); } request.setFileId(newFileId); request.setInfoType((byte) 0x02); request.setFileInfoClass((byte) 0x08); request.setAdditionalInformation(0xABCDEF00);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
SMBUtil.writeInt2(4, buffer, bufferIndex); // Fill rest of buffer with garbage for (int i = 2; i < buffer.length; i++) { buffer[i] = (byte) 0xFF; } // Should only read the structure size (2 bytes) and not go beyond int result = echoResponse.readBytesWireFormat(buffer, bufferIndex); assertEquals(0, result);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java
// Given smbComTreeDisconnect = new SmbComTreeDisconnect(config); // When int command = smbComTreeDisconnect.getCommand(); // Then assertEquals(0x71, command & 0xFF); assertEquals(ServerMessageBlock.SMB_COM_TREE_DISCONNECT, (byte) command); } /** * Nested class for testing buffer operations */ @Nested
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeImpl.java
break; case ServerMessageBlock.SMB_COM_TRANSACTION: case ServerMessageBlock.SMB_COM_TRANSACTION2: switch (((SmbComTransaction) request).getSubCommand() & 0xFF) { case SmbComTransaction.NET_SHARE_ENUM: case SmbComTransaction.NET_SERVER_ENUM2: case SmbComTransaction.NET_SERVER_ENUM3:
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30K bytes - Viewed (0) -
src/test/java/jcifs/config/BaseConfigurationTest.java
void testInitDefaultsWithPresetMachineId() throws Exception { BaseConfiguration testConfig = new BaseConfiguration(false); byte[] customMachineId = new byte[32]; Arrays.fill(customMachineId, (byte) 0xFF); // Use reflection to set private field java.lang.reflect.Field machineIdField = BaseConfiguration.class.getDeclaredField("machineId"); machineIdField.setAccessible(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/netbios/LmhostsTest.java
int[] index = { 0 }; when(mock.read()).thenAnswer(inv -> { if (index[0] < includeContent.length) { return (int) includeContent[index[0]++] & 0xFF; } return -1; }); when(mock.read(any(byte[].class))).thenAnswer(inv -> { byte[] buffer = inv.getArgument(0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileInputStream.java
public int read() throws IOException { // need oplocks to cache otherwise use BufferedInputStream if (read(this.tmp, 0, 1) == -1) { return -1; } return this.tmp[0] & 0xFF; } /** * Reads up to b.length bytes of data from this input stream into an array of bytes. * * @throws IOException * if a network error occurs */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/netbios/NameServiceClient.java
* because it specifies addr */ request.addr = addr; /* if addr ends with 255 flag it bcast */ request.isBroadcast = addr.getAddress()[3] == (byte) 0xFF; n = RETRY_COUNT; do { try { send(request, response, RETRY_TIMEOUT); } catch (final IOException ioe) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 17.6K bytes - Viewed (0)