Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 346 for Short (0.01 sec)

  1. android/guava/src/com/google/common/hash/SipHashFunction.java

     * the License.
     */
    
    /*
     * SipHash-c-d was designed by Jean-Philippe Aumasson and Daniel J. Bernstein and is described in
     * "SipHash: a fast short-input PRF" (available at https://131002.net/siphash/siphash.pdf).
     */
    
    package com.google.common.hash;
    
    import static com.google.common.base.Preconditions.checkArgument;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/witness/WitnessRegistrationTest.java

            assertFalse(registration.isExpired(60000));
    
            // Wait a bit to ensure some time has passed
            Thread.sleep(50);
            // Should be expired with very short timeout (shorter than sleep time)
            assertTrue(registration.isExpired(10));
        }
    
        @Test
        void testStateTransitions() {
            assertEquals(WitnessRegistrationState.REGISTERING, registration.getState());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

      public ClassSanityTester() {
        // TODO(benyu): bake these into ArbitraryInstances.
        setDefault(byte.class, (byte) 1);
        setDefault(Byte.class, (byte) 1);
        setDefault(short.class, (short) 1);
        setDefault(Short.class, (short) 1);
        setDefault(int.class, 1);
        setDefault(Integer.class, 1);
        setDefault(long.class, 1L);
        setDefault(Long.class, 1L);
        setDefault(float.class, 1F);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

                if (paramTypes[index] == byte.class) {
                    args[index] = ByteConversionUtil.toByte(args[index]);
                    return true;
                } else if (paramTypes[index] == short.class) {
                    args[index] = ShortConversionUtil.toShort(args[index]);
                    return true;
                } else if (paramTypes[index] == int.class) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 25.8K bytes
    - Viewed (1)
  5. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                int result = mock.encode(buffer, 0);
                assertEquals(64, result);
                assertEquals(64, mock.size());
            }
    
            @ParameterizedTest
            @ValueSource(strings = { "", "SHORT", "VERY_LONG_CONTEXT_NAME_FOR_TESTING", "特殊字符" })
            @DisplayName("Should handle various name strings")
            void testVariousNameStrings(String name) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

       */
      @JvmStatic
      fun fragmentBuffer(buffer: Buffer): Buffer {
        // Write each byte into a new buffer, then clone it so that the segments are shared.
        // Shared segments cannot be compacted so we'll get a long chain of short segments.
        val result = Buffer()
        while (!buffer.exhausted()) {
          val box = Buffer()
          box.write(buffer, 1)
          result.write(box.copy(), 1)
        }
        return result
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

                b[off] = 0x12;
                b[off + 1] = 0x34;
                return 2;
            }).when(raf).read(any(byte[].class), anyInt(), eq(2));
            assertEquals(0x1234, raf.readUnsignedShort());
            assertEquals((short) 0x1234, raf.readShort());
            assertEquals((char) 0x1234, raf.readChar());
        }
    
        @Test
        @DisplayName("readInt/Long/Float/Double: big-endian decoding")
        void read_multiByteVariants() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  8. ci/official/containers/ml_build_arm64/builder.devtoolset/stringop_trunc.patch

    -			    *((__uint8_t *) __s) = (__uint8_t) c; __s; })
    -
    -#   define __memset_gc(s, c, n) \
    -  ({ void *__s = (s);							      \
    -     union {								      \
    -       unsigned int __ui;						      \
    -       unsigned short int __usi;					      \
    -       unsigned char __uc;						      \
    -     } *__u = __s;							      \
    -     __uint8_t __c = (__uint8_t) (c);					      \
    -									      \
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Nov 11 19:25:56 UTC 2024
    - 42.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

        void testConstructorWithConfigOnly() {
            request = new Smb2SetInfoRequest(mockConfig);
    
            assertNotNull(request);
            // SMB2_SET_INFO command value is 0x0011
            assertEquals((short) 0x0011, request.getCommand());
    
            // Verify that default file ID is set
            byte[] expectedFileId = Smb2Constants.UNSPECIFIED_FILEID;
            Field fileIdField;
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

            });
        }
    
        @Test
        @DisplayName("Should handle buffer underflow during decode")
        void testBufferUnderflowDecode() {
            // Given
            byte[] shortBuffer = new byte[20]; // Too short for transform header
    
            // When/Then
            assertThrows(Exception.class, () -> {
                Smb2TransformHeader.decode(shortBuffer, 0);
            });
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top