Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 732 for short (0.04 sec)

  1. src/main/java/org/codelibs/core/convert/ShortConversionUtil.java

                if (pattern != null) {
                    return Short.valueOf(new SimpleDateFormat(pattern).format(o));
                }
                return (short) ((java.util.Date) o).getTime();
            } else if (o instanceof Boolean) {
                return ((Boolean) o) ? (short) 1 : (short) 0;
            } else {
                return toShort(o.toString());
            }
        }
    
        private static Short toShort(final String s) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/rpcTest.java

                unicodeString.length = (short) 10;
                unicodeString.maximum_length = (short) 20;
                unicodeString.buffer = new short[] { 65, 66, 67 }; // A, B, C
    
                // Then: Values should be set correctly
                assertEquals((short) 10, unicodeString.length);
                assertEquals((short) 20, unicodeString.maximum_length);
                assertArrayEquals(new short[] { 65, 66, 67 }, unicodeString.buffer);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  3. guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/ShortsMethodsForWeb.java

    import jsinterop.annotations.JsPackage;
    
    /** Web specializations for {@link Shorts} methods. */
    public abstract class ShortsMethodsForWeb {
    
      @JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL)
      public static native short min(short... array);
    
      @JsMethod(name = "Math.max", namespace = JsPackage.GLOBAL)
      public static native short max(short... array);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Oct 26 00:50:12 UTC 2023
    - 1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/PacUnicodeStringTest.java

    class PacUnicodeStringTest {
    
        /**
         * Tests the constructor and getter methods.
         */
        @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
    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/java/jcifs/dcerpc/msrpc/lsarpc.java

                }
                this.name.length = (short) _src.dec_ndr_short();
                this.name.maximum_length = (short) _src.dec_ndr_short();
                final int _name_bufferp = _src.dec_ndr_long();
                _src.align(4);
                if (this.dns_domain == null) {
                    this.dns_domain = new rpc.unicode_string();
                }
                this.dns_domain.length = (short) _src.dec_ndr_short();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 44.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/rpc.java

            /**
             * The actual length of the string in bytes.
             */
            public short length;
            /**
             * The maximum allocated length of the string in bytes.
             */
            public short maximum_length;
            /**
             * The buffer containing the Unicode characters.
             */
            public short[] buffer;
    
            @Override
            public void encode(NdrBuffer _dst) throws NdrException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/dcerpc/rpc.java

                // Default constructor
            }
    
            /** The length of the string in bytes */
            public short length;
            /** The maximum length of the string buffer in bytes */
            public short maximum_length;
            /** The Unicode character buffer */
            public short[] buffer;
    
            @Override
            public void encode(NdrBuffer _dst) throws NdrException {
                _dst.align(4);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/pac/PacUnicodeString.java

         */
        public PacUnicodeString(final short length, final short maxLength, final int pointer) {
            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)
  9. src/main/java/jcifs/smb1/dcerpc/msrpc/lsarpc.java

                }
                name.length = (short) _src.dec_ndr_short();
                name.maximum_length = (short) _src.dec_ndr_short();
                final int _name_bufferp = _src.dec_ndr_long();
                _src.align(4);
                if (dns_domain == null) {
                    dns_domain = new rpc.unicode_string();
                }
                dns_domain.length = (short) _src.dec_ndr_short();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 42.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/ntlmssp/NtlmMessageTest.java

            assertEquals(0xBBAA, result, "UShort should be little‑endian");
        }
    
        @Test
        @DisplayName("readUShort throws on too short array")
        void testReadUShortOutOfBounds() {
            byte[] a = new byte[] { 0x02 };
            assertThrows(IndexOutOfBoundsException.class, () -\u003e NtlmMessage.readUShort(a, 0));
        }
    
        @Test
        @DisplayName("readULong throws on too short array")
        void testReadULongOutOfBounds() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
Back to top