Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 841 for encoding1 (0.21 sec)

  1. src/net/http/request_test.go

    	req.TransferEncoding = []string{
    		"encoding1",
    	}
    
    	clonedReq := req.Clone(context.Background())
    	// modify original after deep copy
    	req.TransferEncoding[0] = "encoding2"
    
    	if req.TransferEncoding[0] != "encoding2" {
    		t.Error("expected req.TransferEncoding to be changed")
    	}
    	if clonedReq.TransferEncoding[0] != "encoding1" {
    		t.Error("expected clonedReq.TransferEncoding to be unchanged")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  2. src/internal/fuzz/encoding.go

    package fuzz
    
    import (
    	"bytes"
    	"fmt"
    	"go/ast"
    	"go/parser"
    	"go/token"
    	"math"
    	"strconv"
    	"strings"
    	"unicode/utf8"
    )
    
    // encVersion1 will be the first line of a file with version 1 encoding.
    var encVersion1 = "go test fuzz v1"
    
    // marshalCorpusFile encodes an arbitrary number of arguments into the file format for the
    // corpus.
    func marshalCorpusFile(vals ...any) []byte {
    	if len(vals) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 16:39:12 UTC 2022
    - 11K bytes
    - Viewed (0)
  3. src/mime/encodedword.go

    package mime
    
    import (
    	"bytes"
    	"encoding/base64"
    	"errors"
    	"fmt"
    	"io"
    	"strings"
    	"unicode"
    	"unicode/utf8"
    )
    
    // A WordEncoder is an RFC 2047 encoded-word encoder.
    type WordEncoder byte
    
    const (
    	// BEncoding represents Base64 encoding scheme as defined by RFC 2045.
    	BEncoding = WordEncoder('b')
    	// QEncoding represents the Q-encoding scheme as defined by RFC 2047.
    	QEncoding = WordEncoder('q')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

        apply {
          encodings[ 0x0] = encoding // Null character
          encodings[ 0x1] = encoding // Start of Header
          encodings[ 0x2] = encoding // Start of Text
          encodings[ 0x3] = encoding // End of Text
          encodings[ 0x4] = encoding // End of Transmission
          encodings[ 0x5] = encoding // Enquiry
          encodings[ 0x6] = encoding // Acknowledgment
          encodings[ 0x7] = encoding // Bell
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  5. src/encoding/base32/base32_test.go

    		}
    	}
    }
    
    func TestWithoutPaddingClose(t *testing.T) {
    	encodings := []*Encoding{
    		StdEncoding,
    		StdEncoding.WithPadding(NoPadding),
    	}
    
    	for _, encoding := range encodings {
    		for _, testpair := range pairs {
    
    			var buf strings.Builder
    			encoder := NewEncoder(encoding, &buf)
    			encoder.Write([]byte(testpair.decoded))
    			encoder.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 16:25:54 UTC 2024
    - 26K bytes
    - Viewed (0)
  6. src/encoding/base32/base32.go

    // license that can be found in the LICENSE file.
    
    // Package base32 implements base32 encoding as specified by RFC 4648.
    package base32
    
    import (
    	"io"
    	"slices"
    	"strconv"
    )
    
    /*
     * Encodings
     */
    
    // An Encoding is a radix 32 encoding/decoding scheme, defined by a
    // 32-character alphabet. The most common is the "base32" encoding
    // introduced for SASL GSSAPI and standardized in RFC 4648.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 16:25:54 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  7. src/encoding/base64/base64.go

    // Package base64 implements base64 encoding as specified by RFC 4648.
    package base64
    
    import (
    	"encoding/binary"
    	"io"
    	"slices"
    	"strconv"
    )
    
    /*
     * Encodings
     */
    
    // An Encoding is a radix 64 encoding/decoding scheme, defined by a
    // 64-character alphabet. The most common encoding is the "base64"
    // encoding defined in RFC 4648 and used in MIME (RFC 2045) and PEM
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  8. src/net/http/transfer.go

    	return ok
    }
    
    // parseTransferEncoding sets t.Chunked based on the Transfer-Encoding header.
    func (t *transferReader) parseTransferEncoding() error {
    	raw, present := t.Header["Transfer-Encoding"]
    	if !present {
    		return nil
    	}
    	delete(t.Header, "Transfer-Encoding")
    
    	// Issue 12785; ignore Transfer-Encoding on HTTP/1.0 requests.
    	if !t.protoAtLeast(1, 1) {
    		return nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  9. src/crypto/internal/edwards25519/edwards25519.go

    	return out
    }
    
    var feOne = new(field.Element).One()
    
    // SetBytes sets v = x, where x is a 32-byte encoding of v. If x does not
    // represent a valid point on the curve, SetBytes returns nil and an error and
    // the receiver is unchanged. Otherwise, SetBytes returns v.
    //
    // Note that SetBytes accepts all non-canonical encodings of valid points.
    // That is, it follows decoding rules that match most implementations in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 13 19:21:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  10. src/go/build/deps_test.go

    	io, reflect
    	< internal/saferio;
    
    	# encodings
    	# core ones do not use fmt.
    	io, strconv, slices
    	< encoding;
    
    	encoding, reflect
    	< encoding/binary
    	< encoding/base32, encoding/base64;
    
    	FMT, encoding < flag;
    
    	fmt !< encoding/base32, encoding/base64;
    
    	FMT, encoding/base32, encoding/base64, internal/saferio
    	< encoding/ascii85, encoding/csv, encoding/gob, encoding/hex,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 19.2K bytes
    - Viewed (0)
Back to top