Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for qDecode (0.14 sec)

  1. src/cmd/vendor/golang.org/x/arch/arm64/arm64asm/decode.go

    	errUnknown = fmt.Errorf("unknown instruction")
    )
    
    var decoderCover []bool
    
    func init() {
    	decoderCover = make([]bool, len(instFormats))
    }
    
    // Decode decodes the 4 bytes in src as a single instruction.
    func Decode(src []byte) (inst Inst, err error) {
    	if len(src) < 4 {
    		return Inst{}, errShort
    	}
    
    	x := binary.LittleEndian.Uint32(src)
    
    Search:
    	for i := range instFormats {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 76.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. staging/src/k8s.io/apiextensions-apiserver/test/integration/validation_test.go

    	tearDown, apiExtensionClient, client, err := fixtures.StartDefaultServerWithClients(t)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer tearDown()
    
    	// decode CRD manifest
    	obj, _, err := clientschema.Codecs.UniversalDeserializer().Decode([]byte(fixtureItemsAndType), nil, nil)
    	if err != nil {
    		t.Fatalf("failed decoding of: %v\n\n%s", err, fixtureItemsAndType)
    	}
    	crd := obj.(*apiextensionsv1.CustomResourceDefinition)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 26 20:48:36 UTC 2021
    - 63.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top