Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 2,693 for rint (0.03 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java

        /**
         * init graph
         */
        private void init(int nVertices, int nEdges) {
            int nV = nVertices;
            if (nVertices < 1) {
                nV = 1;
            }
    
            checkVertices(nV);
    
            int nE = nVertices;
            if (nEdges <= nV) {
                nE = 2 * nE;
            }
    
            checkEdges(nE);
        }
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 13K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/util/Base64.java

            final int length = string.length();
            if (length == 0) {
                return new byte[0];
            }
            final int pad = string.charAt(length - 2) == '=' ? 2 : string.charAt(length - 1) == '=' ? 1 : 0;
            final int size = length * 3 / 4 - pad;
            final byte[] buffer = new byte[size];
            int block;
            int i = 0;
            int index = 0;
            while (i < length) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java

        void testWriteSetupWireFormat() {
            // Given
            trans2GetDfsReferral = new Trans2GetDfsReferral(mockConfig, "test");
            byte[] dst = new byte[10];
            int dstIndex = 0;
    
            // When
            int bytesWritten = trans2GetDfsReferral.writeSetupWireFormat(dst, dstIndex);
    
            // Then
            assertEquals(2, bytesWritten);
            assertEquals(SmbComTransaction.TRANS2_GET_DFS_REFERRAL, dst[0]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/rdma/RdmaConnection.java

         * @param length number of bytes to read
         * @return number of bytes actually read
         * @throws IOException if read operation fails
         */
        public abstract int read(ByteBuffer buffer, long remoteAddress, int remoteKey, int length) throws IOException;
    
        /**
         * Write data to RDMA connection
         *
         * @param buffer buffer containing data to write
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

            // Given
            int sid = 0x1234;
            int resumeKey = 0x89ABCDEF; // LE expected: EF CD AB 89
            String name = "file.txt";
            Trans2FindNext2 next = new Trans2FindNext2(sid, resumeKey, name);
    
            int expectedLen = 2 + 2 + 2 + 4 + 2 + name.length() + 1;
            byte[] dst = new byte[expectedLen];
    
            // When
            int len = next.writeParametersWireFormat(dst, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/pac/PacDataInputStream.java

         * @param mask the alignment mask (typically 2, 4, or 8)
         * @throws IOException if an I/O error occurs
         */
        public void align(final int mask) throws IOException {
            final int position = this.size - this.dis.available();
            final int shift = position & mask - 1;
            if (mask != 0 && shift != 0) {
                this.dis.skip(mask - shift);
            }
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            byte[] buffer = new byte[256];
            int bufferIndex = 0;
    
            // Set wordCount to non-zero
            setFieldValue(response, "wordCount", 10);
    
            // Write test data to buffer
            int fileAttributes = 0x0021; // FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_ARCHIVE
            long lastWriteTime = System.currentTimeMillis();
            int fileSize = 12345678;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/netbios/NbtSocket.java

     */
    
    public class NbtSocket extends Socket {
    
        private static final int SSN_SRVC_PORT = 139;
        private static final int BUFFER_SIZE = 512;
        private static final int DEFAULT_SO_TIMEOUT = 5000;
    
        private static LogStream log = LogStream.getInstance();
    
        private NbtAddress address;
        private Name calledName;
        private int soTimeout;
    
        /**
         * Constructs an unconnected NbtSocket.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/NetbiosNameTest.java

            int browserType = 0x01;
            when(mockNetbiosName.getNameType()).thenReturn(browserType);
    
            // When
            int type = mockNetbiosName.getNameType();
    
            // Then
            assertEquals(browserType, type);
        }
    
        @Test
        @DisplayName("Should handle domain master browser")
        void testDomainMasterBrowser() {
            // Given
            int domainMasterType = 0x1B;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionPool.kt

      internal constructor(
        maxIdleConnections: Int = 5,
        keepAliveDuration: Long = 5,
        timeUnit: TimeUnit = TimeUnit.MINUTES,
        taskRunner: TaskRunner = TaskRunner.INSTANCE,
        connectionListener: ConnectionListener = ConnectionListener.NONE,
        readTimeoutMillis: Int = 10_000,
        writeTimeoutMillis: Int = 10_000,
        socketConnectTimeoutMillis: Int = 10_000,
        socketReadTimeoutMillis: Int = 10_000,
        pingIntervalMillis: Int = 10_000,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jun 03 17:10:08 UTC 2025
    - 4.8K bytes
    - Viewed (0)
Back to top