- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 122 for writeBytesWireFormat (0.26 seconds)
-
src/test/java/jcifs/smb1/smb1/SmbComOpenAndXTest.java
assertEquals(26, result); } /** * Test writeBytesWireFormat method with Unicode. */ @Test void testWriteBytesWireFormat_Unicode() { smbComOpenAndX = new SmbComOpenAndX(fileName, access, 0, andx); smbComOpenAndX.useUnicode = true; // For Unicode: 1 byte (initial null in writeBytesWireFormat)
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java
@ValueSource(ints = { 0, 1, 5 }) @DisplayName("writeBytesWireFormat writes StructureSize=4 and Reserved=0 at given offset") void writeBytesWireFormat_writesExpectedValuesAtOffset(int offset) { // Arrange Smb2LogoffRequest req = newRequest(); byte[] buf = new byte[offset + 8]; // extra space for safety // Act int written = req.writeBytesWireFormat(buf, offset);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java
cmd = new SmbComQueryInformation(mockConfig, "testfile.txt"); } @Test @DisplayName("writeBytesWireFormat writes the command byte followed by the null terminated string") void testWriteBytesWireFormatHappy() throws UnsupportedEncodingException { byte[] buffer = new byte[50]; int used = cmd.writeBytesWireFormat(buffer, 0); // Calculate expected size: 1 byte for command + string bytes + 1 null terminator
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponse.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/lock/Smb2LockResponse.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponse.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComLockingAndX.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoRequest.java
} return size8(size); } /** * {@inheritDoc} * * @see jcifs.internal.smb2.ServerMessageBlock2#writeBytesWireFormat(byte[], int) */ @Override protected int writeBytesWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt2(41, dst, dstIndex); dst[dstIndex + 2] = this.infoType;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.4K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoResponse.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComBlankResponseTest.java
} /** * Test for the writeBytesWireFormat method. * It should always return 0. */ @Test void testWriteBytesWireFormat() { assertEquals(0, response.writeBytesWireFormat(buffer, 0), "writeBytesWireFormat should return 0"); } /** * Test for the readParameterWordsWireFormat method.Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.9K bytes - Click Count (0)