Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 218 for Padding (0.04 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbComNtTransactionResponseTest.java

            bufferIndex += 4;
            // dataDisplacement = 0
            writeInt4(0, buffer, bufferIndex);
            bufferIndex += 4;
            // setupCount = 0 (1 byte + 1 padding byte)
            buffer[bufferIndex] = 0;
            buffer[bufferIndex + 1] = 0; // padding byte
    
            int bytesRead = response.readParameterWordsWireFormat(buffer, 0);
    
            assertEquals(37, bytesRead); // 3 reserved + 32 (8*4) + 2 for setupCount
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/io/Smb2ReadRequest.java

        public void setFileId(final byte[] fileId) {
            this.fileId = fileId;
        }
    
        /**
         * Sets the padding for the read request
         *
         * @param padding
         *            the padding to set
         */
        public void setPadding(final byte padding) {
            this.padding = padding;
        }
    
        /**
         * Sets the read flags for the read operation
         *
         * @param readFlags
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

            }
    
            @ParameterizedTest
            @DisplayName("Should handle various padding values")
            @ValueSource(ints = { 0, 1, 15, 127, 255 })
            void testVariousPadding(int padding) {
                assertDoesNotThrow(() -> request.setPadding((byte) padding));
            }
    
            @ParameterizedTest
            @DisplayName("Should handle various read lengths")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

            int written = trans2SetFileInfo.writeDataWireFormat(buffer, 0);
    
            // Should write FileInformation data + 6 bytes padding
            assertEquals(46, written); // 40 + 6
    
            // Verify encode was called
            verify(mockFileInfo).encode(buffer, 0);
    
            // Check that 6 bytes of padding are zeros
            for (int i = 40; i < 46; i++) {
                assertEquals(0, buffer[i]);
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java

        void testGetType() throws SMBProtocolDecodingException {
            // Prepare buffer with specific type value
            testBuffer[0] = 0x01; // revision
            testBuffer[1] = 0x00; // padding
            testBuffer[2] = 0x04; // type low byte
            testBuffer[3] = (byte) 0x80; // type high byte (0x8004)
            // Set all offsets to 0
            for (int i = 4; i < 20; i++) {
                testBuffer[i] = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

            // DACL at offset 60
            buffer.position(60);
            buffer.put((byte) 0x02); // AclRevision
            buffer.put((byte) 0x00); // Padding
            buffer.putShort((short) 8); // AclSize
            buffer.putShort((short) 0); // AceCount
            buffer.putShort((short) 0); // Padding
    
            return buffer.array();
        }
    
        /**
         * Helper method to set error code using reflection
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Booleans.java

       * @return an array containing the values of {@code array}, with guaranteed minimum length {@code
       *     minLength}
       */
      public static boolean[] ensureCapacity(boolean[] array, int minLength, int padding) {
        checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
        checkArgument(padding >= 0, "Invalid padding: %s", padding);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/Booleans.java

       * @return an array containing the values of {@code array}, with guaranteed minimum length {@code
       *     minLength}
       */
      public static boolean[] ensureCapacity(boolean[] array, int minLength, int padding) {
        checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
        checkArgument(padding >= 0, "Invalid padding: %s", padding);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/witness/WitnessRegisterMessage.java

            buf.readOctetArray(wideBytes, 0, byteCount);
    
            // Skip null terminator
            buf.dec_ndr_short();
    
            // Skip padding
            int padding = (4 - ((byteCount + 2) % 4)) % 4;
            for (int i = 0; i < padding; i++) {
                buf.dec_ndr_small();
            }
    
            return new String(wideBytes, StandardCharsets.UTF_16LE);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/nego/CompressionNegotiateContext.java

            }
    
            int start = dstIndex;
    
            // Compression count (2 bytes)
            SMBUtil.writeInt2(this.compressionAlgorithms.length, dst, dstIndex);
            dstIndex += 2;
    
            // Padding (2 bytes)
            SMBUtil.writeInt2(0, dst, dstIndex);
            dstIndex += 2;
    
            // Flags (4 bytes)
            SMBUtil.writeInt4(this.flags, dst, dstIndex);
            dstIndex += 4;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
Back to top