Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for MaxLength (0.92 sec)

  1. src/main/java/jcifs/pac/PacUnicodeString.java

            this.length = length;
            this.maxLength = maxLength;
            this.pointer = pointer;
        }
    
        /**
         * Gets the actual length of the string in bytes.
         *
         * @return the string length
         */
        public short getLength() {
            return this.length;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/HashCode.java

       * @param offset the start offset in the data
       * @param maxLength the maximum number of bytes to write
       * @return the number of bytes written to {@code dest}
       * @throws IndexOutOfBoundsException if there is not enough room in {@code dest}
       */
      @CanIgnoreReturnValue
      public int writeBytesTo(byte[] dest, int offset, int maxLength) {
        maxLength = min(maxLength, bits() / 8);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Ascii.java

        // meaning that a string will be truncated to just the truncation indicator itself
        checkArgument(
            truncationLength >= 0,
            "maxLength (%s) must be >= length of the truncation indicator (%s)",
            maxLength,
            truncationIndicator.length());
    
        if (seq.length() <= maxLength) {
          String string = seq.toString();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 21.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/PacUnicodeStringTest.java

         */
        @Test
        void testConstructorAndGetters() {
            // Create a new instance with some test data
            short length = 10;
            short maxLength = 20;
            int pointer = 100;
            PacUnicodeString pacString = new PacUnicodeString(length, maxLength, pointer);
    
            // Verify that the object was created
            assertNotNull(pacString, "The PacUnicodeString object should not be null.");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  5. src/main/webapp/js/admin/plugins/form-validator/html5.js

    ||k.indexOf(".")>-1)&&(h["data-validation-allowing"]+=",float")):h["data-validation-allowing"]+=",float,negative"}if(e.attr("pattern")&&(b.push("custom"),h["data-validation-regexp"]=e.attr("pattern")),e.attr("maxlength")&&(b.push("length"),h["data-validation-length"]="max"+e.attr("maxlength")),!c&&e.attr("list")){var l=[],m=a("#"+e.attr("list"));if(m.find("option").each(function(){l.push(a(this).text())}),0===l.length){var n=a.trim(a("#"+e.attr("list")).text()).split("\n");a.each(n,function(b,c)...
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 2.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/pac/PacDataInputStream.java

            final short length = readShort();
            final short maxLength = readShort();
            final int pointer = readInt();
    
            if (maxLength < length) {
                throw new PACDecodingException("Malformed string in PAC");
            }
    
            return new PacUnicodeString(length, maxLength, pointer);
        }
    
        /**
         * Reads a string with length prefix from the stream.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/ServerResponseValidator.java

        /**
         * Validate string from server response
         *
         * @param str string to validate
         * @param maxLength maximum allowed length
         * @param fieldName field name for error messages
         * @throws SmbException if string is invalid
         */
        public void validateString(String str, int maxLength, String fieldName) throws SmbException {
            totalValidations.incrementAndGet();
    
            if (str == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            pdis = createInputStream(nullData);
            assertNull(pdis.readFiletime());
        }
    
        @Test
        public void testReadUnicodeString() throws IOException, PACDecodingException {
            // length=4, maxLength=4, pointer=0x1234
            byte[] data = new byte[] { 0x04, 0x00, 0x04, 0x00, 0x34, 0x12, 0x00, 0x00 };
            PacDataInputStream pdis = createInputStream(data);
            PacUnicodeString str = pdis.readUnicodeString();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

        }
    
        // Helper method to read string from buffer
        private String readString(byte[] buffer, int offset, int maxLength) {
            int length = 0;
            for (int i = offset; i < offset + maxLength && i < buffer.length; i++) {
                if (buffer[i] == 0) {
                    break;
                }
                length++;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

            @DisplayName("Should create lock with maximum values")
            void testConstructorWithMaxValues() {
                long maxOffset = Long.MAX_VALUE;
                long maxLength = Long.MAX_VALUE;
                int flags = 0xFFFFFFFF;
    
                lock = new Smb2Lock(maxOffset, maxLength, flags);
    
                assertNotNull(lock);
            }
    
            @Test
            @DisplayName("Should create lock with negative values")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top