- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 632 for wire (0.03 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
assertNotNull(resp.getNotifyInformation()); assertEquals(0, resp.getNotifyInformation().size()); } @Test @DisplayName("Should write empty bytes to wire format") void testWriteBytesWireFormat() { // Given byte[] buffer = new byte[256]; int offset = 10; // When int bytesWritten = response.writeBytesWireFormat(buffer, offset);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 18.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java
byte[] copiedFileId = new byte[16]; System.arraycopy(buffer, 8, copiedFileId, 0, 16); assertArrayEquals(expectedFileId, copiedFileId); } @Test @DisplayName("Test wire format structure matches SMB2 specification") void testWireFormatStructure() { byte[] buffer = new byte[256]; Arrays.fill(buffer, (byte) 0xCC); // Fill with pattern to detect unwritten areasCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.5K bytes - Click Count (0) -
src/main/java/jcifs/smb1/netbios/SessionRequestPacket.java
final int start = bufferIndex; if (in.read(buffer, bufferIndex, length) != length) { throw new IOException("invalid session request wire format"); } bufferIndex += calledName.readWireFormat(buffer, bufferIndex); bufferIndex += callingName.readWireFormat(buffer, bufferIndex); return bufferIndex - start; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java
import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; import jcifs.Configuration; /** * Tests for {@link SmbComSetInformationResponse}. * * Tests focus on the wire format methods which all return 0, * and the toString method implementation. */ @ExtendWith(MockitoExtension.class) @DisplayName("SmbComSetInformationResponse tests") public class SmbComSetInformationResponseTest {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 4.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
assertEquals(24, SMBUtil.readInt2(buffer, 0)); // Reserved1 (2 bytes) - should be 0 (bytes were initialized to 0xCC, so they weren't written) // This is expected behavior - the reserved fields are not explicitly written to 0 // Reserved2 (4 bytes) - should be 0 (bytes were initialized to 0xCC, so they weren't written) // This is expected behavior - the reserved fields are not explicitly written to 0
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/InfoTest.java
// toString() uses lastWriteTime directly without offset assertTrue(resp.toString().contains(new Date(1630000000000L).toString())); } // Buffer helpers to build SMB basic file info wire format. // SMB uses little-endian byte order private static void writeLong(byte[] buf, int offset, long val) { for (int i = 0; i < 8; i++) { buf[offset + i] = (byte) ((val >>> (8 * i)) & 0xFF);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
assertEquals(6, written, "writeParameterWordsWireFormat should return 6"); // Only compare the first 6 bytes that were actually written byte[] actualWritten = new byte[6]; System.arraycopy(buffer, 0, actualWritten, 0, 6); assertArrayEquals(expected, actualWritten, "wire format should match expectation"); } static Stream<Arguments> validParams() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
assertEquals(0x40, Smb2TreeConnectResponse.SMB2_SHARE_CAP_CLUSTER); assertEquals(0x80, Smb2TreeConnectResponse.SMB2_SHARE_CAP_ASYMMETRIC); } @Test @DisplayName("Should write empty bytes to wire format") void testWriteBytesWireFormat() { // Given byte[] buffer = new byte[256]; int offset = 10; // When
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 19.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
void testInheritance() { assertTrue(echoResponse instanceof ServerMessageBlock2Response); } } @Nested @DisplayName("Write Bytes Wire Format Tests") class WriteBytesWireFormatTests { @Test @DisplayName("Should return 0 for writeBytesWireFormat") void testWriteBytesWireFormat() { byte[] buffer = new byte[1024];
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java
throw new SMBProtocolDecodingException("Signature verification failed for " + this.getClass().getName()); } return len; } /** * Writes the AndX wire format to buffer * @param dst the destination buffer * @param dstIndex the starting index * @return the number of bytes written */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 15.8K bytes - Click Count (0)