- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 575 for wire (0.01 sec)
-
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() {
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/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; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.4K bytes - Viewed (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
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
void testIsForceUnicodeMultipleCalls() { for (int i = 0; i < 5; i++) { assertTrue(response.isForceUnicode()); } } } @Nested @DisplayName("Wire Format Write Tests") class WireFormatWriteTests { @Test @DisplayName("Should return 0 for writeSetupWireFormat") void testWriteSetupWireFormat() { byte[] dst = new byte[100];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (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 */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (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);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/jcifs/netbios/SessionServicePacket.java
} return buffer[bufferIndex] & 0xFF; } int type, length; /** * Writes the packet to the specified byte array in wire format. * * @param dst the destination byte array to write to * @param dstIndex the starting index in the destination array * @return written bytes */
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/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];
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/smb2/tree/Smb2TreeConnectRequestTest.java
assertEquals(alignedShortSize, shortSize); assertEquals(alignedLongSize, longSize); } @Test @DisplayName("Should write correct bytes to wire format") void testWriteBytesWireFormat() throws Exception { // Given byte[] buffer = new byte[512]; int headerStart = 50;
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/internal/smb1/trans/TransWaitNamedPipeTest.java
assertEquals(SmbComTransaction.TRANS_WAIT_NAMED_PIPE, transWaitNamedPipe.getSubCommand()); } @Test @DisplayName("Multiple wire format operations should be consistent") void testMultipleWireFormatOperations() { // Arrange transWaitNamedPipe = new TransWaitNamedPipe(mockConfig, testPipeName); byte[] dst1 = new byte[10];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0)