Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 291 - 300 of 591 for Shorts (0.08 seconds)

  1. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

        void testReadStringWithMaxLength() {
            smb.useUnicode = false;
            byte[] buffer = new byte[6];
            System.arraycopy("short".getBytes(), 0, buffer, 0, 5);
            buffer[5] = 0; // Null terminator
            String result = smb.readString(buffer, 0, 5, false);
            assertEquals("short", result);
        }
    
        @Test
        void testReadStringWithMaxLengthExceeded() {
            smb.useUnicode = false;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextResponse.java

            int start = bufferIndex;
    
            if (len < 52) {
                throw new SMBProtocolDecodingException("Lease V2 context data too short: " + len);
            }
    
            // Read lease V2 data (52 bytes)
            byte[] keyBytes = new byte[16];
            System.arraycopy(buffer, bufferIndex, keyBytes, 0, 16);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb1/https/HandlerTest.java

            }
        }
    
        @Nested
        @DisplayName("HTTP vs HTTPS Comparison Tests")
        class ProtocolComparisonTests {
    
            @Test
            @DisplayName("Should use different ports for HTTP and HTTPS")
            void testDifferentPorts() {
                // Given
                Handler httpsHandler = new Handler();
    
                // When
                int httpsPort = httpsHandler.getDefaultPort();
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  4. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/client/FesenClient.java

         * @return The created OpenSearch client.
         */
        protected Client createClient() {
            final String[] hosts =
                    split(address, ",").get(stream -> stream.map(String::trim).filter(StringUtil::isNotEmpty).toArray(n -> new String[n]));
            final Settings settings = Settings.builder().putList("http.hosts", hosts).build();
            return new HttpClient(settings, null);
        }
    
        /**
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Sun Nov 23 02:01:26 GMT 2025
    - 26.2K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SSPContextTest.java

            @DisplayName("Never calculates MIC when integrity unsupported")
            void testNoMicCalculationWhenIntegrityUnsupported() throws Exception {
                // Only stub supportsIntegrity - isEstablished won't be called due to short-circuit
                when(mockCtx.supportsIntegrity()).thenReturn(false);
    
                // A small consumer that only uses MIC if advertised as available
                byte[] data = new byte[] { 1, 2 };
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.2K bytes
    - Click Count (0)
  6. src/main/java/jcifs/dcerpc/msrpc/MsrpcLookupSids.java

            super(policyHandle, new LsarSidArrayX(sids), new jcifs.dcerpc.msrpc.lsarpc.LsarRefDomainList(),
                    new jcifs.dcerpc.msrpc.lsarpc.LsarTransNameArray(), (short) 1, sids.length);
            this.ptype = 0;
            this.flags = DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG;
        }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/MIENameTest.java

                throw new RuntimeException(e);
            }
            byte[] nameBytes = "bob".getBytes(StandardCharsets.US_ASCII);
    
            return Stream.of(
                    // Too short for TOK_ID + MECH_OID_LEN
                    Arguments.of("too short header", new byte[] { 0x04, 0x01, 0x00 }, IllegalArgumentException.class),
    
                    // Wrong TOK_ID
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Interceptor.kt

     * limitations under the License.
     */
    package okhttp3
    
    import java.io.IOException
    import java.util.concurrent.TimeUnit
    
    /**
     * Observes, modifies, and potentially short-circuits requests going out and the corresponding
     * responses coming back in. Typically interceptors add, remove, or transform headers on the request
     * or response.
     *
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 3.5K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/hash/AbstractHasher.java

          for (int remaining = b.remaining(); remaining > 0; remaining--) {
            putByte(b.get());
          }
        }
        return this;
      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putShort(short s) {
        putByte((byte) s);
        putByte((byte) (s >>> 8));
        return this;
      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putInt(int i) {
        putByte((byte) i);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.5K bytes
    - Click Count (0)
  10. .github/workflows/mint/minio-pools.yaml

        volumes:
          - pdata8-1:/pdata1
          - pdata8-2:/pdata2
          
      nginx:
        image: nginx:1.19.2-alpine
        hostname: nginx
        volumes:
          - ./nginx-8-node.conf:/etc/nginx/nginx.conf:ro
        ports:
          - "9000:9000"
          - "9001:9001"
        depends_on:
          - minio1
          - minio2
          - minio3
          - minio4
          - minio5
          - minio6
          - minio7
          - minio8
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Nov 03 21:18:18 GMT 2023
    - 2.3K bytes
    - Click Count (0)
Back to Top