Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for NS (0.02 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt

        client.initWebSocket(random, pingIntervalMillis = 500)
        taskFaker.advanceUntil(ns(500L))
        server.processNextFrame() // Ping.
        client.processNextFrame() // Pong.
        taskFaker.advanceUntil(ns(1000L))
        server.processNextFrame() // Ping.
        client.processNextFrame() // Pong.
        taskFaker.advanceUntil(ns(1500L))
        server.processNextFrame() // Ping.
        client.processNextFrame() // Pong.
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

         */
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 255, -1, 256, 65535 })
        void constructorMasksValue(int input) {
            NdrShort ns = new NdrShort(input);
            // NdrShort masks to 0xFF (8 bits) in its constructor
            int expected = input & 0xFF;
            assertEquals(expected, ns.value, "value should be masked to 0xFF before storing");
        }
    
        /**
         * Round-trip encode/decode for a selection of representative values.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/internal/MockWebServerSocket.kt

      fun sleepWhileOpen(nanos: Long) {
        var ms = nanos / 1_000_000L
        val ns = nanos - (ms * 1_000_000L)
    
        while (ms > 100) {
          Thread.sleep(100)
          if (javaNetSocket.isClosed) throw InterruptedIOException("socket closed")
          ms -= 100L
        }
    
        if (ms > 0L || ns > 0) {
          Thread.sleep(ms, ns.toInt())
        }
      }
    
      override fun cancel() {
        delegate.cancel()
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

                        String.format(
                                "Timing attack vulnerability detected: timing ratio %.3f exceeds tolerance %.3f "
                                        + "(start: %d ns, middle: %d ns, end: %d ns)",
                                timingRatio, TIMING_TOLERANCE, timeStart, timeMiddle, timeEnd));
            } finally {
                // Clean up resources
                baseAuth.close();
                startAuth.close();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/CriticalPerformanceTest.java

                    overallTimeMs);
            System.out.printf("  Avg allocation time: %.2f ns%n", avgAllocTimeNs);
            System.out.printf("  Avg release time: %.2f ns%n", avgReleaseTimeNs);
    
            // Verify O(1) performance - should be reasonably fast (allowing for JVM overhead)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/StopwatchTest.java

      public void testToString() {
        stopwatch.start();
        assertEquals("0.000 ns", stopwatch.toString());
        ticker.advance(1);
        assertEquals("1.000 ns", stopwatch.toString());
        ticker.advance(998);
        assertEquals("999.0 ns", stopwatch.toString());
        ticker.advance(1);
        assertEquals("1.000 \u03bcs", stopwatch.toString());
        ticker.advance(1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  7. src/main/webapp/WEB-INF/web.xml

     * governing permissions and limitations under the License.
    -->
    <web-app xmlns="https://jakarta.ee/xml/ns/jakartaee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
                                 web-app_6_0.xsd"
             version="6.0">
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue May 06 09:19:22 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/Lockable.kt

    internal inline fun Lockable.notifyAll() = (this as Object).notifyAll()
    
    internal inline fun Lockable.awaitNanos(nanos: Long) {
      val ms = nanos / 1_000_000L
      val ns = nanos - (ms * 1_000_000L)
      if (ms > 0L || nanos > 0) {
        (this as Object).wait(ms, ns.toInt())
      }
    }
    
    internal inline fun Lockable.assertLockNotHeld() {
      if (assertionsEnabled && Thread.holdsLock(this)) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Response.java

                throw new SMBProtocolDecodingException("Invalid durable handle V2 response length: " + len);
            }
    
            this.timeout100Ns = SMBUtil.readInt4(buffer, bufferIndex) & 0xFFFFFFFFL; // Timeout (4 bytes, 100-ns intervals, unsigned)
            this.flags = SMBUtil.readInt4(buffer, bufferIndex + 4); // Flags (4 bytes)
            return 8;
        }
    
        /**
         * Get the timeout value in 100-nanosecond intervals (raw wire format)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/netbios/NameServicePacket.java

            case NBSTAT -> "NBSTAT";
            default -> "0x" + Hexdump.toHexString(this.questionType, 4);
            };
            recordTypeString = switch (this.recordType) {
            case A -> "A";
            case NS -> "NS";
            case NULL -> "NULL";
            case NB -> "NB";
            case NBSTAT -> "NBSTAT";
            default -> "0x" + Hexdump.toHexString(this.recordType, 4);
            };
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 11.1K bytes
    - Viewed (0)
Back to top