Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 149 for alignof (1.11 sec)

  1. src/main/java/jcifs/pac/PacDataInputStream.java

            this.dis = new DataInputStream(in);
            this.size = in.available();
        }
    
        /**
         * Aligns the stream position to the specified boundary.
         * @param mask the alignment mask (typically 2, 4, or 8)
         * @throws IOException if an I/O error occurs
         */
        public void align(final int mask) throws IOException {
            final int position = this.size - this.dis.available();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            // When
            int size = request.size();
    
            // Then - should include context sizes
            assertTrue(size > 112); // Bigger than without contexts
            assertEquals(0, size % 8); // Should be 8-byte aligned
        }
    
        @Test
        @DisplayName("Should write bytes to wire format correctly")
        void testWriteBytesWireFormat() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

        void testSize() {
            // When
            int size = request.size();
    
            // Then
            // Size should be aligned to 8 bytes: SMB2_HEADER_LENGTH + 32
            int expectedSize = Smb2Constants.SMB2_HEADER_LENGTH + 32;
            // The size8 method aligns to 8-byte boundary
            int alignedSize = (expectedSize + 7) & ~7;
            assertEquals(alignedSize, size);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

            void testBoundaryConditions() {
                // Test with exactly aligned data
                request.setData(new byte[8], 0, 8); // 8-byte aligned
                assertEquals(((Smb2Constants.SMB2_HEADER_LENGTH + 48 + 8 + 7) / 8) * 8, request.size());
    
                // Test with unaligned data
                request.setData(new byte[7], 0, 7); // Not 8-byte aligned
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/Smb2EchoRequestTest.java

                assertEquals(size1, size2);
            }
    
            @Test
            @DisplayName("Size should be 72 bytes (64 header + 4 body aligned to 8)")
            void testExactSize() {
                // SMB2_HEADER_LENGTH = 64, body = 4, total = 68
                // size8 aligns to 8-byte boundary: (68 + 7) & ~7 = 72
                assertEquals(72, echoRequest.size());
            }
        }
    
        @Nested
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  6. compat/maven-compat/src/test/java/org/apache/maven/project/path/DefaultPathTranslatorTest.java

            String aligned = new DefaultPathTranslator().alignToBaseDirectory("${basedir}", basedir);
    
            assertEquals(basedir.getAbsolutePath(), aligned);
        }
    
        @Test
        void testAlignToBasedirWhereBasedirExpressionIsTheValuePrefix() {
            File basedir = new File(System.getProperty("java.io.tmpdir"), "test").getAbsoluteFile();
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

            setupMockConfig();
            Smb2IoctlRequest request = new Smb2IoctlRequest(mockConfig, TEST_CONTROL_CODE);
    
            int size = request.size();
    
            // Base size: SMB2_HEADER_LENGTH (64) + 56 = 120, aligned to 8
            assertEquals(120, size);
        }
    
        @Test
        @DisplayName("Test size calculation with input data")
        void testSizeWithInputData() {
            setupMockConfig();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java

            assertEquals(0, bytesRead);
        }
    
        @Test
        @DisplayName("Test decode with non-aligned next entry offset throws exception")
        void testDecodeNonAlignedNextOffset() {
            byte[] buffer = new byte[100];
            // Write non-aligned next entry offset (not divisible by 4)
            SMBUtil.writeInt4(7, buffer, 0); // 7 is not aligned to 4 bytes
            SMBUtil.writeInt4(FileNotifyInformation.FILE_ACTION_ADDED, buffer, 4);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  9. src/test/resources/plugin/repo2/index.html

                <td align="right">
                                  &nbsp;
                              </td>
                <td></td>
              </tr>
                      <tr>
                <td><a href="https://oss.sonatype.org/content/repositories/snapshots/org/codelibs/fess/fess-crawler-db/">fess-crawler-db/</a></td>
                <td>Fri Jan 13 13:54:37 UTC 2017</td>
                <td align="right">
                                  &nbsp;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 13 07:34:14 UTC 2019
    - 10.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                    int encodedSize = req.encode(buffer, 0);
    
                    // Verify 8-byte alignment
                    assertEquals(0, encodedSize % 8, "Encoded size should be 8-byte aligned for name length " + nameLen);
                }
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 0, 10, 50, 100, 200 })
            @DisplayName("Should handle various buffer offsets")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
Back to top