Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for writeBodyWireFormat (0.1 sec)

  1. src/test/java/jcifs/netbios/NodeStatusRequestTest.java

            byte[] dst = new byte[200];
    
            // Act
            int result1 = nodeStatusRequest.writeBodyWireFormat(dst, 0);
            int result2 = nodeStatusRequest.writeBodyWireFormat(dst, 50);
            int result3 = nodeStatusRequest.writeBodyWireFormat(dst, 100);
    
            // Assert
            assertEquals(result1, result2);
            assertEquals(result2, result3);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/netbios/NameServicePacket.java

        }
    
        int writeWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            dstIndex += writeHeaderWireFormat(dst, dstIndex);
            dstIndex += writeBodyWireFormat(dst, dstIndex);
            return dstIndex - start;
        }
    
        int readWireFormat(final byte[] src, int srcIndex) {
            final int start = srcIndex;
            srcIndex += readHeaderWireFormat(src, srcIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/netbios/NameServicePacket.java

            questionClass = IN;
        }
    
        int writeWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            dstIndex += writeHeaderWireFormat(dst, dstIndex);
            dstIndex += writeBodyWireFormat(dst, dstIndex);
            return dstIndex - start;
        }
    
        int readWireFormat(final byte[] src, int srcIndex) {
            final int start = srcIndex;
            srcIndex += readHeaderWireFormat(src, srcIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NameQueryResponseTest.java

            // This method is implemented to always return 0
            byte[] dst = new byte[10];
            int dstIndex = 0;
            assertEquals(0, nameQueryResponse.writeBodyWireFormat(dst, dstIndex), "writeBodyWireFormat should always return 0");
        }
    
        @Test
        void readBodyWireFormat_shouldCallReadResourceRecordWireFormat() throws NoSuchFieldException, IllegalAccessException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/NameServicePacketTest.java

        private static class TestNameServicePacket extends NameServicePacket {
            public TestNameServicePacket(Configuration config) {
                super(config);
            }
    
            @Override
            int writeBodyWireFormat(byte[] dst, int dstIndex) {
                // For testing purposes, we can return a fixed length or mock behavior
                return 0;
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

            assertNotNull(macAddress);
            assertEquals(6, macAddress.length);
        }
    
        @Test
        void writeBodyWireFormat_shouldReturnZero() {
            byte[] dst = new byte[100];
            int result = response.writeBodyWireFormat(dst, 10);
            assertEquals(0, result);
        }
    
        @Test
        void readBodyWireFormat_shouldDelegateToReadResourceRecordWireFormat() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
Back to top