Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 337 for Padding (0.05 sec)

  1. cmd/server-startup-msg.go

    	"github.com/minio/minio/internal/color"
    	"github.com/minio/minio/internal/logger"
    )
    
    // generates format string depending on the string length and padding.
    func getFormatStr(strLen int, padding int) string {
    	formatStr := fmt.Sprintf("%ds", strLen+padding)
    	return "%" + formatStr
    }
    
    // Prints the formatted startup message.
    func printStartupMessage(apiEndpoints []string, err error) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/escape/CharEscaper.java

        int charsLeft = slen - lastEscape;
        if (charsLeft > 0) {
          int sizeNeeded = destIndex + charsLeft;
          if (destSize < sizeNeeded) {
    
            // Regrow and copy, expensive! No padding as this is the final copy.
            dest = growBuffer(dest, destIndex, sizeNeeded);
          }
          s.getChars(lastEscape, slen, dest, destIndex);
          destIndex = sizeNeeded;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 15:45:16 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Ints.java

       * @return an array containing the values of {@code array}, with guaranteed minimum length {@code
       *     minLength}
       */
      public static int[] ensureCapacity(int[] array, int minLength, int padding) {
        checkArgument(minLength >= 0, "Invalid minLength: %s", minLength);
        checkArgument(padding >= 0, "Invalid padding: %s", padding);
        return (array.length < minLength) ? Arrays.copyOf(array, minLength + padding) : array;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NameTest.java

            // Test that non-space characters in padding are preserved in length calculation
            byte[] src = new byte[100];
            src[0] = 0x20;
    
            // Encode "AB" followed by non-space padding
            src[1] = 'E';
            src[2] = 'B'; // A
            src[3] = 'E';
            src[4] = 'C'; // B
    
            // Use 'X' (0x58) instead of space for padding
            for (int i = 5; i < 31; i += 2) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextRequest.java

         */
        public void setEpoch(int epoch) {
            this.epoch = epoch;
        }
    
        @Override
        public int size() {
            // Context header: 16 bytes
            // Name: 4 bytes ("RqL2")
            // Padding: 4 bytes (to align data to 8-byte boundary)
            // Data: 52 bytes (lease V2 structure)
            return 16 + 4 + 4 + 52;
        }
    
        @Override
        public int encode(byte[] dst, int dstIndex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  6. src/main/webapp/js/admin/popper.min.js.map

    this one is good\n      boundaries = offsets;\n    }\n  }\n\n  // Add paddings\n  padding = padding || 0;\n  const isPaddingNumber = typeof padding === 'number';\n  boundaries.left += isPaddingNumber ? padding : padding.left || 0; \n  boundaries.top += isPaddingNumber ? padding : padding.top || 0; \n  boundaries.right -= isPaddingNumber ? padding : padding.right || 0; \n  boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0; \n\n  return boundaries;\n}\n","import getBoundaries from...
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Oct 26 01:49:09 UTC 2024
    - 120.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

            int decodedBytes = decoded.decode(buffer, 0, 36);
    
            // Verify encoding/decoding
            assertEquals(40, encodedBytes); // encode writes 40 bytes (includes padding)
            assertEquals(36, decodedBytes); // decode reads 36 bytes (no padding)
            assertEquals(original.getCreateTime(), decoded.getCreateTime());
            assertEquals(original.getLastAccessTime(), decoded.getLastAccessTime());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequest.java

            this.leaseFlags = leaseFlags;
        }
    
        @Override
        public int size() {
            // Context header: 16 bytes
            // Name: 4 bytes ("RqLs")
            // Padding: 4 bytes (to align data to 8-byte boundary)
            // Data: 32 bytes (lease V1 structure)
            return 16 + 4 + 4 + 32;
        }
    
        @Override
        public int encode(byte[] dst, int dstIndex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/util/Base64Test.java

    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Unit tests for {@link Base64}.
     *
     * These tests cover the public static encode/decode methods for different
     * payload sizes, padding rules, and error conditions such as null and empty
     * input.
     */
    @ExtendWith(MockitoExtension.class)
    class Base64Test {
    
        /**
         * Data provider for various byte arrays and the expected Base64 string.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Request.java

        public boolean isPersistent() {
            return (flags & Smb2HandleCapabilities.SMB2_DHANDLE_FLAG_PERSISTENT) != 0;
        }
    
        @Override
        public int size() {
            // Context header (16) + name length (4) + padding to 8-byte alignment (4) + data (32)
            return 16 + 4 + 4 + STRUCTURE_SIZE;
        }
    
        @Override
        public int encode(byte[] dst, int dstIndex) {
            int start = dstIndex;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.2K bytes
    - Viewed (0)
Back to top