Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 15 of 15 for writeBodyWireFormat (0.09 seconds)

  1. src/main/java/jcifs/smb1/netbios/NodeStatusResponse.java

         */
    
        NodeStatusResponse(final NbtAddress queryAddress) {
            this.queryAddress = queryAddress;
            recordName = new Name();
            macAddress = new byte[6];
        }
    
        @Override
        int writeBodyWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        int readBodyWireFormat(final byte[] src, final int srcIndex) {
            return readResourceRecordWireFormat(src, srcIndex);
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  2. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  3. 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 {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  4. 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);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.9K bytes
    - Click Count (0)
  5. 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 {
    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)
Back to Top