- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for writeTrailerWireFormat (0.1 seconds)
-
src/test/java/jcifs/netbios/SessionRequestPacketTest.java
byte[] dst = new byte[256]; int bytesWritten = packet.writeTrailerWireFormat(dst, 0); assertTrue(bytesWritten > 0); // Each name should write at least 34 bytes (encoded name + scope) assertTrue(bytesWritten >= 68); } @Test @DisplayName("writeTrailerWireFormat with scope should handle scoped names") void testWriteTrailerWireFormatWithScope() {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/netbios/SessionServicePacketTest.java
int trailerLength = 10; // Default trailer length for testing int trailerBytesRead = 0; @Override int writeTrailerWireFormat(byte[] dst, int dstIndex) { // Simple mock implementation for (int i = 0; i < trailerLength && dstIndex + i < dst.length; i++) { dst[dstIndex + i] = (byte) i; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.5K bytes - Click Count (0)