Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 168 for 256 (0.01 sec)

  1. src/test/java/jcifs/pac/ASN1UtilTest.java

        }
    
        @Test
        void testReadLength_LongForm() throws IOException {
            // Definite-length long form (length 256)
            InputStream s = new ByteArrayInputStream(new byte[] { (byte) 0x82, 0x01, 0x00 });
            int length = ASN1Util.readLength(s, 500, false);
            assertEquals(256, length);
        }
    
        @Test
        void testReadLength_Indefinite() throws IOException {
            // Indefinite-length
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/BaseTest.java

         */
        protected byte[] createTestData(int size) {
            byte[] data = new byte[size];
            for (int i = 0; i < size; i++) {
                data[i] = (byte) (i % 256);
            }
            return data;
        }
    
        /**
         * Create a test string with specified length
         */
        protected String createTestString(int length) {
            StringBuilder sb = new StringBuilder(length);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

                // Test various boundary values
                assertEquals(0, new NdrShort(0).value);
                assertEquals(255, new NdrShort(255).value);
                assertEquals(0, new NdrShort(256).value); // 256 & 0xFF = 0
                assertEquals(255, new NdrShort(-1).value); // -1 & 0xFF = 255
                assertEquals(128, new NdrShort(-128).value); // -128 & 0xFF = 128
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/HeadersReader.kt

     */
    package okhttp3.internal.http1
    
    import okhttp3.Headers
    import okio.BufferedSource
    
    /**
     * Parse all headers delimited by "\r\n" until an empty line. This throws if headers exceed 256 KiB.
     */
    class HeadersReader(
      val source: BufferedSource,
    ) {
      private var headerLimit = HEADER_LIMIT.toLong()
    
      /** Read a single line counted against the header size limit. */
      fun readLine(): String {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

            // Test with buffer and length larger than needed
            byte[] buffer = new byte[100];
    
            // Fill test pattern
            for (int i = 0; i < buffer.length; i++) {
                buffer[i] = (byte) (i % 256);
            }
    
            int bytesConsumed = response.decode(buffer, 0, 50);
    
            assertEquals(28, bytesConsumed, "Should consume exactly 28 bytes regardless of extra length");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/com/ServerDataTest.java

            byte[] largeKey = new byte[256];
            for (int i = 0; i < largeKey.length; i++) {
                largeKey[i] = (byte) (i % 256);
            }
            serverData.encryptionKey = largeKey;
            serverData.encryptionKeyLength = largeKey.length;
    
            assertEquals(256, serverData.encryptionKey.length);
            assertEquals(256, serverData.encryptionKeyLength);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/exception/SQLRuntimeException.java

         *
         * @param cause the underlying exception
         * @return the real message
         */
        protected static String getRealMessage(final SQLException cause) {
            final StringBuilder buf = new StringBuilder(256);
            buf.append(cause.getMessage()).append(" : [");
            SQLException next = cause.getNextException();
            while (next != null) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt

        fun X509Certificate.sha256Hash(): ByteString = publicKey.encoded.toByteString().sha256()
    
        /**
         * Returns the SHA-256 of `certificate`'s public key.
         *
         * In OkHttp 3.1.2 and earlier, this returned a SHA-1 hash of the public key. Both types are
         * supported, but SHA-256 is preferred.
         */
        @JvmStatic
        fun pin(certificate: Certificate): String {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  9. mvnw

    ##########################################################################################
    # End of extension
    ##########################################################################################
    
    # If specified, validate the SHA-256 sum of the Maven wrapper jar file
    wrapperSha256Sum=""
    while IFS="=" read -r key value; do
      case "$key" in wrapperSha256Sum)
        wrapperSha256Sum=$value
        break
        ;;
      esac
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Oct 14 22:24:15 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. maven-tests/mvnw.cmd

    }
    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
    $webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null
    
    # If specified, validate the SHA-256 sum of the Maven distribution zip file
    $distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum
    if ($distributionSha256Sum) {
      if ($USE_MVND) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jul 12 12:05:57 UTC 2025
    - 6.8K bytes
    - Viewed (0)
Back to top