Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for doDecode (4.33 sec)

  1. cmd/storage-datatypes_gen_test.go

    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    
    	m := v.Msgsize()
    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecodeBaseOptions Msgsize() is inaccurate")
    	}
    
    	vn := BaseOptions{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    		t.Error(err)
    	}
    
    	buf.Reset()
    	msgp.Encode(&buf, &v)
    	err = msgp.NewReader(&buf).Skip()
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 62.6K bytes
    - Viewed (0)
  2. src/encoding/json/decode_test.go

    			}
    			if err := dec.Decode(v.Interface()); !equalError(err, tt.err) {
    				t.Fatalf("%s: Decode error:\n\tgot:  %v\n\twant: %v", tt.Where, err, tt.err)
    			} else if err != nil {
    				return
    			}
    			if got := v.Elem().Interface(); !reflect.DeepEqual(got, tt.out) {
    				gotJSON, _ := Marshal(got)
    				wantJSON, _ := Marshal(tt.out)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTransportImpl.java

                // read and decode first
                System.arraycopy(this.sbuf, 4, buffer, 0, Smb2Constants.SMB2_HEADER_LENGTH);
                readn(this.in, buffer, Smb2Constants.SMB2_HEADER_LENGTH, rl - Smb2Constants.SMB2_HEADER_LENGTH);
    
                cur.setReadSize(rl);
                int len = cur.decode(buffer, 0);
    
                if ( len > rl ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Wed Jan 18 23:47:00 UTC 2023
    - 67K bytes
    - Viewed (0)
  4. configure.py

          output = subprocess.check_output(cmd, stderr=stderr)
        except subprocess.CalledProcessError as e:
          output = e.output
      else:
        output = subprocess.check_output(cmd, stderr=stderr)
      return output.decode('UTF-8').strip()
    
    
    def cygpath(path):
      """Convert path from posix to windows."""
      return os.path.abspath(path).replace('\\', '/')
    
    
    def get_python_path(environ_cp, python_bin_path):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 04:32:44 UTC 2024
    - 53.8K bytes
    - Viewed (1)
  5. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    const ImplementsGetwd = true
    
    func Getwd() (wd string, err error) {
    	b := make([]uint16, 300)
    	n, e := GetCurrentDirectory(uint32(len(b)), &b[0])
    	if e != nil {
    		return "", e
    	}
    	return string(utf16.Decode(b[0:n])), nil
    }
    
    func Chdir(path string) (err error) {
    	pathp, err := UTF16PtrFromString(path)
    	if err != nil {
    		return err
    	}
    	return SetCurrentDirectory(pathp)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go

    }
    
    var _ runtime.Decoder = schemaCoercingDecoder{}
    
    func (d schemaCoercingDecoder) Decode(data []byte, defaults *schema.GroupVersionKind, into runtime.Object) (runtime.Object, *schema.GroupVersionKind, error) {
    	var decodingStrictErrs []error
    	obj, gvk, err := d.delegate.Decode(data, defaults, into)
    	if err != nil {
    		decodeStrictErr, ok := runtime.AsStrictDecodingError(err)
    		if !ok || obj == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/sidecar_simulation_test.go

    				Port:     80,
    				Protocol: simulation.TCP,
    				TLS:      simulation.TLS,
    				CallMode: simulation.CallModeInbound,
    			},
    			Disabled: simulation.Result{
    				// TLS is not terminated, so we will attempt to decode as HTTP and fail
    				Error: simulation.ErrProtocolError,
    			},
    			Permissive: simulation.Result{
    				// This could also be a protocol error. In the current implementation, we choose not
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  8. pkg/controller/history/controller_history_test.go

    					action.GetPatch(), test.revision)
    				if err != nil {
    					return true, nil, err
    				}
    				obj, err := runtime.Decode(clientscheme.Codecs.LegacyCodec(apps.SchemeGroupVersion), b)
    				if err != nil {
    					return true, nil, err
    				}
    				patched, err := legacyscheme.Scheme.ConvertToVersion(obj, apps.SchemeGroupVersion)
    				if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 21 13:31:28 UTC 2023
    - 49.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    	if obj, ok := a.patch.(map[string]interface{}); ok {
    		patch.Object = obj
    	} else if str, ok := a.patch.(string); ok {
    		str = FixTabsOrDie(str)
    		if err := utilyaml.NewYAMLOrJSONDecoder(strings.NewReader(str), len(str)).Decode(&patch.Object); err != nil {
    			return err
    		}
    	} else {
    		return fmt.Errorf("invalid patch type: %T", a.patch)
    	}
    
    	patch.SetKind(kind)
    	patch.SetAPIVersion(a.gvr.GroupVersion().String())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  10. src/crypto/tls/handshake_client_test.go

    	// the rsa_pss_rsae_* SignatureSchemes. Assert that RSASSA-PSS certificates don't
    	// parse, or that they don't carry *rsa.PublicKey keys.
    	b, _ := pem.Decode([]byte(`
    -----BEGIN CERTIFICATE-----
    MIIDZTCCAhygAwIBAgIUCF2x0FyTgZG0CC9QTDjGWkB5vgEwPgYJKoZIhvcNAQEK
    MDGgDTALBglghkgBZQMEAgGhGjAYBgkqhkiG9w0BAQgwCwYJYIZIAWUDBAIBogQC
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
Back to top