Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 273 for 0L (0.01 sec)

  1. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  2. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt

            val hasData = sendBuffer.size > 0L
            val hasTrailers = trailers != null
            when {
              hasTrailers -> {
                while (sendBuffer.size > 0L) {
                  emitFrame(false)
                }
                connection.writeHeaders(id, outFinished, trailers!!.toHeaderList())
              }
    
              hasData -> {
                while (sendBuffer.size > 0L) {
                  emitFrame(true)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  4. 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() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

            @Test
            @DisplayName("Should encode zero values correctly")
            void testEncodingWithZeroValues() {
                lock = new Smb2Lock(0L, 0L, 0);
                lock.encode(buffer, 0);
    
                assertEquals(0L, SMBUtil.readInt8(buffer, 0));
                assertEquals(0L, SMBUtil.readInt8(buffer, 8));
                assertEquals(0, SMBUtil.readInt4(buffer, 16));
                assertEquals(0, SMBUtil.readInt4(buffer, 20));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/flowcontrol/WindowCounter.kt

    package okhttp3.internal.http2.flowcontrol
    
    class WindowCounter(
      val streamId: Int,
    ) {
      /** The total number of bytes consumed. */
      var total: Long = 0L
        private set
    
      /** The total number of bytes acknowledged by outgoing `WINDOW_UPDATE` frames. */
      var acknowledged: Long = 0L
        private set
    
      val unacknowledged: Long
        @Synchronized get() = total - acknowledged
    
      @Synchronized
      fun update(
        total: Long = 0,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  7. 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++;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt

        delegate: Source,
        private val contentLength: Long,
      ) : ForwardingSource(delegate) {
        private var bytesReceived = 0L
        private var invokeStartEvent = true
        private var completed = false
        private var closed = false
    
        init {
          if (contentLength == 0L) {
            complete(null)
          }
        }
    
        @Throws(IOException::class)
        override fun read(
          sink: Buffer,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  9. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/net/NetServerEnum2Response.java

            @Override
            public long createTime() {
                return 0L;
            }
    
            @Override
            public long lastModified() {
                return 0L;
            }
    
            @Override
            public long lastAccess() {
                return 0L;
            }
    
            @Override
            public long length() {
                return 0L;
            }
    
            @Override
            public String toString() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top