Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testAlign (0.04 sec)

  1. src/test/java/jcifs/pac/PacDataInputStreamTest.java

        private PacDataInputStream createInputStream(byte[] data) throws IOException {
            return new PacDataInputStream(new ByteArrayInputStream(data));
        }
    
        @Test
        public void testAlign() throws IOException {
            // Test alignment from position 1 to 4
            byte[] data = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05 };
            PacDataInputStream pdis = createInputStream(data);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

            ndrBuffer.advance(10);
            assertEquals(20, ndrBuffer.getIndex());
            assertEquals(20, ndrBuffer.getLength()); // Length should be updated
        }
    
        @Test
        void testAlign() {
            // Align to 4-byte boundary
            ndrBuffer.setIndex(1);
            int alignedBytes = ndrBuffer.align(4);
            assertEquals(3, alignedBytes); // Should advance by 3 bytes (1 -> 4)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
Back to top