Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 1,247 for encodeTo (0.28 sec)

  1. src/cmd/compile/internal/ssa/op.go

    	tailCall          bool      // is a tail call
    	nilCheck          bool      // this op is a nil check on arg0
    	faultOnNilArg0    bool      // this op will fault if arg0 is nil (and aux encodes a small offset)
    	faultOnNilArg1    bool      // this op will fault if arg1 is nil (and aux encodes a small offset)
    	usesScratch       bool      // this op requires scratch memory space
    	hasSideEffects    bool      // for "reasons", not to be eliminated.  E.g., atomic store, #19182.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 15:29:10 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/scheme_test.go

    `,
    		},
    	}
    
    	for i, item := range table {
    		gotEncoded, err := runtime.Encode(codec, item.obj)
    		if err != nil {
    			t.Errorf("unexpected error '%v' (%#v)", err, item.obj)
    		} else if e, a := item.encoded, string(gotEncoded); e != a {
    			t.Errorf("expected\n%#v\ngot\n%#v\n", e, a)
    		}
    
    		gotDecoded, err := runtime.Decode(codec, []byte(item.encoded))
    		if err != nil {
    			t.Errorf("unexpected error '%v' (%v)", err, item.encoded)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/compatibility.go

    		}
    	}
    }
    
    func (c *CompatibilityTestOptions) encode(t *testing.T, obj runtime.Object) (json, yaml, proto []byte) {
    	jsonBytes := bytes.NewBuffer(nil)
    	if err := c.JSON.Encode(obj, jsonBytes); err != nil {
    		t.Fatalf("error encoding json: %v", err)
    	}
    	yamlBytes := bytes.NewBuffer(nil)
    	if err := c.YAML.Encode(obj, yamlBytes); err != nil {
    		t.Fatalf("error encoding yaml: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 16:38:32 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_util_test.go

    			t.Errorf("failed to read data file: %v", err)
    		}
    
    		jsonData := new(bytes.Buffer)
    		if err := json.NewEncoder(jsonData).Encode(tc.data); err != nil {
    			t.Errorf("failed to encode json: %v", err)
    		}
    		if string(data) != jsonData.String() {
    			t.Errorf("expecting encoded data %v, got %v", string(data), jsonData)
    		}
    	}
    }
    
    func TestCreateCSIOperationContext(t *testing.T) {
    	testCases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Challenge.kt

          val newKey = key?.lowercase(US)
          newAuthParams[newKey] = value
        }
        this.authParams = unmodifiableMap<String?, String>(newAuthParams)
      }
    
      /** Returns a copy of this charset that expects a credential encoded with [charset]. */
      fun withCharset(charset: Charset): Challenge {
        val authParams = this.authParams.toMutableMap()
        authParams["charset"] = charset.name()
        return Challenge(scheme, authParams)
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. src/encoding/gob/type_test.go

    	c := make(chan bool)
    	const N = 10
    	for i := 0; i < N; i++ {
    		go func() {
    			p := new(T2)
    			Register(p)
    			b := new(bytes.Buffer)
    			enc := NewEncoder(b)
    			err := enc.Encode(p)
    			if err != nil {
    				t.Error("encoder fail:", err)
    			}
    			dec := NewDecoder(b)
    			err = dec.Decode(p)
    			if err != nil {
    				t.Error("decoder fail:", err)
    			}
    			c <- true
    		}()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:26:13 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  7. pkg/log/uds.go

    	"go.uber.org/zap/buffer"
    	"go.uber.org/zap/zapcore"
    )
    
    // An udsCore write entries to an UDS server with HTTP Post. Log messages will be encoded into a JSON array.
    type udsCore struct {
    	client       http.Client
    	minimumLevel zapcore.Level
    	url          string
    	enc          zapcore.Encoder
    	buffers      []*buffer.Buffer
    	mu           sync.Mutex
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 16 00:20:01 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheEncryptionIntegrationTest.groovy

        String encryptionKeyAsBase64
    
        def setup() {
            keyStoreDir = new TestFile(testDirectory, 'keystores')
            encryptionKeyText = "01234567890123456789012345678901"
            encryptionKeyAsBase64 = Base64.encoder.encodeToString(encryptionKeyText.getBytes(StandardCharsets.UTF_8))
        }
    
        def "configuration cache can be loaded without errors from #source using #encryptionTransformation"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 13K bytes
    - Viewed (0)
  9. src/net/rpc/jsonrpc/client.go

    package jsonrpc
    
    import (
    	"encoding/json"
    	"fmt"
    	"io"
    	"net"
    	"net/rpc"
    	"sync"
    )
    
    type clientCodec struct {
    	dec *json.Decoder // for reading JSON values
    	enc *json.Encoder // for writing JSON values
    	c   io.Closer
    
    	// temporary work space
    	req  clientRequest
    	resp clientResponse
    
    	// JSON-RPC responses include the request id but not the request method.
    	// Package rpc expects both.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. src/syscall/wtf8_windows.go

    	for i := 0; i < len(s); {
    		// Cannot use 'for range s' because it expects valid
    		// UTF-8 runes.
    		r, size := utf8.DecodeRuneInString(s[i:])
    		if r == utf8.RuneError {
    			// Check if s[i:] contains a valid WTF-8 encoded surrogate.
    			if sc := s[i:]; len(sc) >= 3 && sc[0] == 0xED && 0xA0 <= sc[1] && sc[1] <= 0xBF && 0x80 <= sc[2] && sc[2] <= 0xBF {
    				r = rune(sc[0]&mask3)<<12 + rune(sc[1]&maskx)<<6 + rune(sc[2]&maskx)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 09:26:16 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top