Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 159 for Padding (0.08 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Reader.kt

          length: Int,
          flags: Int,
          padding: Int,
        ): Int {
          var result = length
          if (flags and FLAG_PADDED != 0) result-- // Account for reading the padding length.
          if (padding > result) {
            throw IOException("PROTOCOL_ERROR padding $padding > remaining length $result")
          }
          result -= padding
          return result
        }
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            int[] positions = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 16 };
            for (int pos : positions) {
                int padding = (int) pad8Method.invoke(req, pos);
    
                // Verify padding makes position 8-byte aligned
                assertEquals(0, (pos + padding) % 8);
            }
        }
    
        @Test
        @DisplayName("Should write bytes at different buffer offsets")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2Test.kt

        val paddingLength = 254
        val padding = ByteArray(paddingLength)
        Arrays.fill(padding, 0.toByte())
        writeMedium(frame, dataLength + paddingLength + 1)
        frame.writeByte(Http2.TYPE_DATA)
        frame.writeByte(FLAG_PADDED)
        frame.writeInt(expectedStreamId and 0x7fffffff)
        frame.writeByte(paddingLength)
        frame.write(expectedData)
        frame.write(padding)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 28.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java

            // Number of referrals (2 bytes) - value: 1
            SMBUtil.writeInt2(1, buffer, 2);
    
            // Flags (2 bytes)
            SMBUtil.writeInt2(0x0003, buffer, 4);
    
            // Padding (2 bytes)
            buffer[6] = 0;
            buffer[7] = 0;
    
            // First referral (minimal structure)
            // Version (2 bytes)
            SMBUtil.writeInt2(3, buffer, 8);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
Back to top