Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 268 for 0L (0.01 seconds)

  1. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

            Assertions.assertEquals(size, info.getSize());
        }
    
        // Supplies a range of normal and edge case values.
        private static Stream<Arguments> valueProvider() {
            return Stream.of(Arguments.of(0, 0L, 0L, 0L, 0L), // all zeros
                    Arguments.of(1, 1L, 1L, 1L, 1L), // ones
                    Arguments.of(123, 456L, 789L, 101112L, 131415L), // arbitrary positives
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java

            // Setup
            String pipeName = "TestPipe";
            long timeout = 0L;
            FsctlPipeWaitRequest request = new FsctlPipeWaitRequest(pipeName, timeout);
            byte[] buffer = new byte[100];
    
            // Execute
            int bytesEncoded = request.encode(buffer, 0);
    
            // Verify
            assertEquals(0L, SMBUtil.readInt8(buffer, 0));
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartReader.kt

            sink: Buffer,
            byteCount: Long,
          ): Long {
            require(byteCount >= 0L) { "byteCount < 0: $byteCount" }
            check(currentPart == this) { "closed" }
    
            return source.timeout().intersectWith(timeout) {
              when (val limit = currentPartBytesRemaining(maxByteCount = byteCount)) {
                0L -> -1L // No more bytes in this part.
                else -> source.read(sink, limit)
              }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed May 28 02:11:14 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/HostIntervalControllerTest.java

            controller.delayMillisBeforeProcessing = waittime;
            controller.delayMillisAfterProcessing = 0L;
            controller.delayMillisForWaitingNewUrl = 0L;
            controller.delayMillisAtNoUrlInQueue = 0L;
    
            final Callable<Integer> testCallable = new Callable<Integer>() {
                public Integer call() throws Exception {
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java

        }
    
        /**
         * Parameterised test for a selection of edge and typical values.
         */
        @ParameterizedTest(name = "Encode and decode {0}")
        @ValueSource(longs = { 0L, 1L, -1L, Long.MAX_VALUE, Long.MIN_VALUE })
        public void testEncodeWithVariousValues(long val) throws NdrException {
            NdrHyper hyper = new NdrHyper(val);
            // Create buffer with extra space for alignment
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb1/trans2/Trans2SetFileInformation.java

                final long lastWriteTime, final long lastAccessTime) {
            this(config, fid, new FileBasicInfo(createTime, lastAccessTime, lastWriteTime, 0L, attributes | 0x80));
        }
    
        @Override
        protected int writeSetupWireFormat(final byte[] dst, int dstIndex) {
            dst[dstIndex] = this.getSubCommand();
            dstIndex++;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponse.java

            @Override
            public int getAttributes() {
                return 0;
            }
    
            @Override
            public long getCreateTime() {
                return 0L;
            }
    
            @Override
            public long getLastWriteTime() {
                return 0L;
            }
    
            @Override
            public long getSize() {
                return endOfFile;
            }
    
            @Override
            public String toString() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  8. mockwebserver/src/main/kotlin/mockwebserver3/internal/TriggerSink.kt

      private val delegate: Sink,
      private val triggerByteCount: Long,
      private val trigger: () -> Unit,
    ) : Sink by delegate {
      private var bytesWritten = 0L
    
      override fun write(
        source: Buffer,
        byteCount: Long,
      ) {
        if (byteCount == 0L) return // Avoid double-triggering.
    
        if (bytesWritten == triggerByteCount) {
          source.skip(byteCount)
          return
        }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/AllocInfoTest.java

            void shouldHandleZeroValues() {
                // Given
                TestAllocInfo allocInfo = new TestAllocInfo(0L, 0L);
    
                // When & Then
                assertEquals(0L, allocInfo.getCapacity());
                assertEquals(0L, allocInfo.getFree());
            }
    
            @Test
            @DisplayName("Should handle maximum long values")
            void shouldHandleMaximumLongValues() {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            when(mockCtx.getConfig()).thenReturn(mock(Configuration.class));
            Smb2SessionSetupRequest nextReq = new Smb2SessionSetupRequest(mockCtx, 0, 0, 0L, null);
            assertEquals(0L, nextReq.getSessionId());
    
            resp.prepare(nextReq);
            assertEquals(0L, nextReq.getSessionId(), "SessionId should not be propagated before response is received");
        }
    
        @Test
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.7K bytes
    - Click Count (0)
Back to Top