Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 191 - 200 of 268 for 0L (0.01 seconds)

  1. src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java

            SmbComLockingAndX cmd = new SmbComLockingAndX(cfg);
            setField(cmd, "fid", 1);
            setField(cmd, "typeOfLock", (byte) type);
            setField(cmd, "newOpLockLevel", (byte) 0);
            setField(cmd, "timeout", 0L);
            setField(cmd, "locks", new LockingAndXRange[0]);
            setField(cmd, "unlocks", new LockingAndXRange[0]);
            setField(cmd, "largeFile", false);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/util/InputValidatorTest.java

        @DisplayName("Test timeout validation")
        void testTimeoutValidation() {
            assertDoesNotThrow(() -> InputValidator.validateTimeout(1000L, "test"));
            assertDoesNotThrow(() -> InputValidator.validateTimeout(0L, "test"));
            assertDoesNotThrow(() -> InputValidator.validateTimeout(3600000L, "test"));
    
            assertThrows(IllegalArgumentException.class, () -> InputValidator.validateTimeout(-1L, "test"));
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

            if (t != 0L) {
                t = (t + MILLISECONDS_BETWEEN_1970_AND_1601) * 10000L;
            }
            writeInt8(t, dst, dstIndex);
        }
    
        static long readUTime(final byte[] buffer, final int bufferIndex) {
            return readInt4(buffer, bufferIndex) * 1000L;
        }
    
        static void writeUTime(long t, final byte[] dst, final int dstIndex) {
            if (t == 0L || t == 0xFFFFFFFFFFFFFFFFL) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 19.7K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/io/ByteSource.java

       * @since 15.0
       */
      public boolean isEmpty() throws IOException {
        Optional<Long> sizeIfKnown = sizeIfKnown();
        if (sizeIfKnown.isPresent()) {
          return sizeIfKnown.get() == 0L;
        }
        Closer closer = Closer.create();
        try {
          InputStream in = closer.register(openStream());
          return in.read() == -1;
        } catch (Throwable e) {
          throw closer.rethrow(e);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

        class ParameterSettingTests {
    
            @Test
            @DisplayName("Should set offset correctly")
            void testSetOffset() {
                assertDoesNotThrow(() -> request.setOffset(0L));
                assertDoesNotThrow(() -> request.setOffset(1024L));
                assertDoesNotThrow(() -> request.setOffset(Long.MAX_VALUE));
            }
    
            @Test
            @DisplayName("Should set remaining bytes")
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 22.4K bytes
    - Click Count (0)
  6. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

                        type = COMMON_NAME,
                        value = "cash.app",
                      ),
                    ),
                  ),
                validity =
                  Validity(
                    notBefore = 0L,
                    notAfter = 1000L,
                  ),
                subject =
                  listOf(
                    listOf(
                      AttributeTypeAndValue(
                        type = COMMON_NAME,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 43.9K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                    this.writeSize = Math.min(th.getConfig().getSendBufferSize() - 70, 0xFFFF - 70);
                }
    
                this.fp = 0L;
            } catch (final CIFSException e) {
                throw SmbException.wrap(e);
            }
        }
    
        /**
         * @return
         * @throws SmbException
         */
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

         * @param dstIndex
         *            The starting index in the destination array
         */
        public static void writeUTime(final Configuration cfg, long t, final byte[] dst, final int dstIndex) {
            if (t == 0L || t == 0xFFFFFFFFFFFFFFFFL) {
                SMBUtil.writeInt4(0xFFFFFFFF, dst, dstIndex);
                return;
            }
    
            if (cfg.getLocalTimezone().inDaylightTime(new Date())) {
                // in DST
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt

    }
    
    internal const val USER_AGENT: String = "okhttp/${CONST_VERSION}"
    
    internal fun checkOffsetAndCount(
      arrayLength: Long,
      offset: Long,
      count: Long,
    ) {
      if (offset or count < 0L || offset > arrayLength || arrayLength - offset < count) {
        throw ArrayIndexOutOfBoundsException("length=$arrayLength, offset=$offset, count=$offset")
      }
    }
    
    internal fun <T> interleave(
      a: Iterable<T>,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon May 05 16:01:00 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/SmbSessionImplTest.java

            assertNull(session.getExpiration());
            setField(session, "expiration", 123L);
            assertEquals(123L, session.getExpiration());
            setField(session, "expiration", 0L);
            assertNull(session.getExpiration());
        }
    
        @Test
        @DisplayName("connection and failure status delegate to transport")
        void testConnectionAndFailureStatus() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.5K bytes
    - Click Count (0)
Back to Top