Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 260 for 0L (0.01 sec)

  1. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                assertEquals(chunkCount, SMBUtil.readInt4(buffer, SOURCE_KEY_SIZE));
    
                // Verify some chunks
                int offset = HEADER_SIZE;
                assertEquals(0L, SMBUtil.readInt8(buffer, offset));
                assertEquals(0L, SMBUtil.readInt8(buffer, offset + 8));
                assertEquals(0, SMBUtil.readInt4(buffer, offset + 16));
    
                offset = HEADER_SIZE + ((chunkCount - 1) * CHUNK_SIZE);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/DirectoryLeasingIntegrationTest.java

            when(mockFile1.lastAccess()).thenReturn(System.currentTimeMillis() - 1800000);
    
            when(mockFile2.getName()).thenReturn("subfolder");
            when(mockFile2.length()).thenReturn(0L);
            when(mockFile2.lastModified()).thenReturn(System.currentTimeMillis() - 1800000);
            when(mockFile2.isDirectory()).thenReturn(true);
            when(mockFile2.getAttributes()).thenReturn(0x10); // FILE_ATTRIBUTE_DIRECTORY
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

        // close() should close underlying handle with 0L when valid
        @Test
        @DisplayName("close() closes underlying handle when valid")
        void close_validHandle_invokesClose() throws Exception {
            when(handle.isValid()).thenReturn(true);
            SmbWatchHandleImpl sut = new SmbWatchHandleImpl(handle, 0, false);
    
            sut.close();
    
            verify(handle, times(1)).close(0L);
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/InfoTest.java

            assertNotNull(info);
            assertEquals(attributes, info.getAttributes());
            assertEquals(create, info.getCreateTime());
            assertEquals(lastWrite, info.getLastWriteTime());
            assertEquals(0L, info.getSize());
        }
    
        @Test
        void testTrans2QueryPathUnsupportedLevel() throws Exception {
            Trans2QueryPathInformationResponse trans = new Trans2QueryPathInformationResponse(9999) {
            };
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/UploadProgress.java

          delegate.writeTo(bufferedSink);
          bufferedSink.flush();
        }
    
        public Sink sink(Sink sink) {
          return new ForwardingSink(sink) {
            private long totalBytesWritten = 0L;
            private boolean completed = false;
    
            @Override
            public void write(Buffer source, long byteCount) throws IOException {
              super.write(source, byteCount);
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (1)
  6. guava/src/com/google/common/io/CharSource.java

       * @since 15.0
       */
      public boolean isEmpty() throws IOException {
        Optional<Long> lengthIfKnown = lengthIfKnown();
        if (lengthIfKnown.isPresent()) {
          return lengthIfKnown.get() == 0L;
        }
        Closer closer = Closer.create();
        try {
          Reader reader = closer.register(openStream());
          return reader.read() == -1;
        } catch (Throwable e) {
          throw closer.rethrow(e);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 08 18:35:13 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/CharSource.java

       * @since 15.0
       */
      public boolean isEmpty() throws IOException {
        Optional<Long> lengthIfKnown = lengthIfKnown();
        if (lengthIfKnown.isPresent()) {
          return lengthIfKnown.get() == 0L;
        }
        Closer closer = Closer.create();
        try {
          Reader reader = closer.register(openStream());
          return reader.read() == -1;
        } catch (Throwable e) {
          throw closer.rethrow(e);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 08 18:35:13 UTC 2025
    - 25.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Request.java

         * @return the timeout in 100-nanosecond intervals
         */
        public long getTimeoutFor100Ns() {
            if (timeoutMs == 0) {
                return 0L; // Persistent handles use 0
            }
            // Convert milliseconds to 100-nanosecond intervals
            // 1 ms = 10,000 * 100ns intervals
            long intervals = timeoutMs * 10000L;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/HashTestUtils.java

        Random rng = new Random(0L);
        byte[] bytes = new byte[rng.nextInt(256) + 1];
        rng.nextBytes(bytes);
        assertEquals(hashFunction.hashBytes(bytes), hashFunction.hashBytes(ByteBuffer.wrap(bytes)));
      }
    
      static void assertHashByteBufferExhaustsBuffer(HashFunction hashFunction) {
        Random rng = new Random(0L);
        byte[] bytes = new byte[rng.nextInt(256) + 1];
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 18:19:59 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt

      }
    
      private fun logWithTime(message: String) {
        val startNs = startNs
        val timeMs =
          if (startNs == null) {
            // Event occurred before start, for an example an early cancel.
            0L
          } else {
            TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNs)
          }
    
        logger.invoke("[$timeMs ms] $message")
      }
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 21:03:04 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top