Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 99 for alignof (0.04 sec)

  1. .bazelrc

    build:windows --copt=/d2ReducedOptimizeHugeFunctions
    build:windows --host_copt=/d2ReducedOptimizeHugeFunctions
    
    # Before VS 2017 15.8, the member "type" would non-conformingly have an
    # alignment of only alignof(max_align_t). VS 2017 15.8 was fixed to handle this
    # correctly, but the fix inherently changes layout and breaks binary
    # compatibility (*only* for uses of aligned_storage with extended alignments).
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Fri Aug 22 21:03:34 UTC 2025
    - 56K bytes
    - Viewed (0)
  2. doc/go_spec.html

    <li>For a variable <code>x</code> of any type: <code>unsafe.Alignof(x)</code> is at least 1.
    </li>
    
    <li>For a variable <code>x</code> of struct type: <code>unsafe.Alignof(x)</code> is the largest of
       all the values <code>unsafe.Alignof(x.f)</code> for each field <code>f</code> of <code>x</code>, but at least 1.
    </li>
    
    <li>For a variable <code>x</code> of array type: <code>unsafe.Alignof(x)</code> is the same as
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue May 06 19:12:15 UTC 2025
    - 286.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

        @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)
            assertEquals(4, ndrBuffer.getIndex());
            assertEquals(4, ndrBuffer.getLength()); // Length should be updated
    
            // Already aligned
            ndrBuffer.setIndex(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)
  4. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

        @Test
        @DisplayName("Test readParametersWireFormat with non-aligned nextEntryOffset throws exception")
        void testReadParametersWireFormatNonAlignedOffset() throws Exception {
            ByteBuffer buffer = ByteBuffer.allocate(100);
            buffer.order(ByteOrder.LITTLE_ENDIAN);
    
            // Create notification with non-aligned nextEntryOffset
            buffer.putInt(3); // Non-aligned nextEntryOffset (not divisible by 4)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java

            assertEquals(0, transaction.pad(0)); // Already aligned
            assertEquals(0, transaction.pad(4)); // Already aligned
            assertEquals(0, transaction.pad(8)); // Already aligned
            assertEquals(3, transaction.pad(1)); // Need 3 bytes to align to 4
            assertEquals(2, transaction.pad(2)); // Need 2 bytes to align to 4
            assertEquals(1, transaction.pad(3)); // Need 1 byte to align to 4
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

            return this.buf;
        }
    
        /**
         * Aligns the buffer index to the specified boundary with a fill value.
         *
         * @param boundary the alignment boundary
         * @param value the fill value for padding
         * @return the number of bytes added for alignment
         */
        public int align(final int boundary, final byte value) {
            final int n = align(boundary);
            int i = n;
            while (i > 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/PacTest.java

                writeLittleEndianLong(baos, 72); // offset (aligned)
    
                // Buffer 2: SERVER_CHECKSUM
                writeLittleEndianInt(baos, PacConstants.SERVER_CHECKSUM);
                writeLittleEndianInt(baos, 20); // signature size
                writeLittleEndianLong(baos, 80); // offset (aligned)
    
                // Buffer 3: PRIVSVR_CHECKSUM
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

            return buf;
        }
    
        /**
         * Aligns the buffer index to the specified boundary with a fill value.
         *
         * @param boundary the alignment boundary
         * @param value the fill value for padding
         * @return the number of bytes added for alignment
         */
        public int align(final int boundary, final byte value) {
            final int n = align(boundary);
            int i = n;
            while (i > 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

         *
         * @param size the size to align
         * @return the aligned size
         */
        protected static final int size8(final int size) {
            return size8(size, 0);
        }
    
        /**
         * Rounds up the size to the specified alignment.
         *
         * @param size the size to align
         * @param align the alignment boundary
         * @return the aligned size
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  10. 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)
Back to top