Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 297 for 256 (0.02 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HeadersCommon.kt

     *  limitations under the License.
     */
    @file:Suppress("ktlint:standard:filename")
    
    package okhttp3.internal
    
    import okhttp3.Headers
    
    /** This is the same as Chrome's limit. */
    internal const val HEADER_LIMIT = 256 * 1024L
    
    internal fun Headers.commonName(index: Int): String = namesAndValues.getOrNull(index * 2) ?: throw IndexOutOfBoundsException("name[$index]")
    
    internal fun Headers.commonValue(index: Int): String =
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 6K bytes
    - Click Count (0)
  2. src/archive/tar/strconv_test.go

    		}
    	}
    }
    
    func TestParseNumeric(t *testing.T) {
    	vectors := []struct {
    		in   string
    		want int64
    		ok   bool
    	}{
    		// Test base-256 (binary) encoded values.
    		{"", 0, true},
    		{"\x80", 0, true},
    		{"\x80\x00", 0, true},
    		{"\x80\x00\x00", 0, true},
    		{"\xbf", (1 << 6) - 1, true},
    		{"\xbf\xff", (1 << 14) - 1, true},
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Sep 11 17:52:43 GMT 2025
    - 15K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java

                getHeaderStartMethod.setAccessible(true);
    
                // Create a buffer and write
                byte[] buffer = new byte[256];
                int bytesWritten = request.writeBytesWireFormat(buffer, 64);
    
                // Verify structure size (should be 33)
                assertEquals(33, SMBUtil.readInt2(buffer, 64));
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 13.9K bytes
    - Click Count (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

              "maxIntermediateCas < 0: $maxIntermediateCas"
            }
            this.maxIntermediateCas = maxIntermediateCas
          }
    
        /**
         * Configure the certificate to generate a 256-bit ECDSA key, which provides about 128 bits of
         * security. ECDSA keys are noticeably faster than RSA keys.
         *
         * This is the default configuration and has been since this API was introduced in OkHttp
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 21.6K bytes
    - Click Count (0)
  5. internal/logger/target/kafka/kafka_scram_client_contrib.go

    		config.Net.SASL.Mechanism = sarama.SASLMechanism(sarama.SASLTypePlaintext)
    	}
    }
    
    // KafkaSHA256 is a function that returns a crypto/sha256 hasher and should be used
    // to create Client objects configured for SHA-256 hashing.
    var KafkaSHA256 scram.HashGeneratorFcn = sha256.New
    
    // KafkaSHA512 is a function that returns a crypto/sha512 hasher and should be used
    // to create Client objects configured for SHA-512 hashing.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/AbstractRepositoryMetadata.java

            this.metadata.merge(repoMetadata.getMetadata());
        }
    
        @Override
        public String extendedToString() {
            StringBuilder buffer = new StringBuilder(256);
    
            buffer.append(LS).append("Repository Metadata").append(LS).append("--------------------------");
            buffer.append(LS).append("GroupId: ").append(getGroupId());
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  7. src/bufio/scan_test.go

    // license that can be found in the LICENSE file.
    
    package bufio_test
    
    import (
    	. "bufio"
    	"bytes"
    	"errors"
    	"io"
    	"strings"
    	"testing"
    	"unicode"
    	"unicode/utf8"
    )
    
    const smallMaxTokenSize = 256 // Much smaller for more efficient testing.
    
    // Test white space table matches the Unicode definition.
    func TestSpace(t *testing.T) {
    	for r := rune(0); r <= utf8.MaxRune; r++ {
    		if IsSpace(r) != unicode.IsSpace(r) {
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Click Count (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/repository/MetadataResolutionResult.java

            }
            return l;
        }
    
        @Override
        public String toString() {
            if (artifacts == null) {
                return "";
            }
            StringBuilder sb = new StringBuilder(256);
            int i = 1;
            sb.append("---------\n");
            sb.append(artifacts.size()).append('\n');
            for (Artifact a : artifacts) {
                sb.append(i).append(' ').append(a).append('\n');
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellInvoker.java

            protected void commandStyle(LineReader reader, AttributedStringBuilder sb, boolean enable) {
                if (enable) {
                    if (reader.getTerminal().getNumericCapability(InfoCmp.Capability.max_colors) >= 256) {
                        sb.style(AttributedStyle.DEFAULT.bold().foreground(69));
                    } else {
                        sb.style(AttributedStyle.DEFAULT.foreground(AttributedStyle.CYAN));
                    }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

              .put("SHA1", sha1()) // Not the official name, but still works
              .put("sHa-1", sha1()) // Not the official name, but still works
              .put("SHA-1", sha1())
              .put("SHA-256", sha256())
              .put("SHA-384", sha384())
              .put("SHA-512", sha512())
              .build();
    
      public void testHashing() throws Exception {
        for (String stringToTest : INPUTS) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 4.9K bytes
    - Click Count (0)
Back to Top