Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for mybytes (0.21 sec)

  1. src/encoding/xml/marshal_test.go

    	},
    	{
    		Value:         &Data{Bytes: []byte{}, Custom: MyBytes{}, Attr: []byte{}},
    		ExpectXML:     `<Data Attr=""><Bytes></Bytes><Custom></Custom></Data>`,
    		UnmarshalOnly: true,
    	},
    
    	// Check that []byte works, including named []byte types.
    	{
    		Value:     &Data{Bytes: []byte("ab"), Custom: MyBytes("cd"), Attr: []byte{'v'}},
    		ExpectXML: `<Data Attr="v"><Bytes>ab</Bytes><Custom>cd</Custom></Data>`,
    	},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  2. src/cmd/cgo/out.go

    		var buf bytes.Buffer
    		noSourceConf.Fprint(&buf, fset, def.Go)
    		if bytes.HasPrefix(buf.Bytes(), []byte("_Ctype_")) ||
    			strings.HasPrefix(name, "_Ctype_enum_") ||
    			strings.HasPrefix(name, "_Ctype_union_") {
    			// This typedef is of the form `typedef a b` and should be an alias.
    			fmt.Fprintf(fgo2, "= ")
    		}
    		fmt.Fprintf(fgo2, "%s", buf.Bytes())
    		fmt.Fprintf(fgo2, "\n\n")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  3. src/math/big/int_test.go

    }
    
    func checkLehmerGcd(aBytes, bBytes []byte) bool {
    	a := new(Int).SetBytes(aBytes)
    	b := new(Int).SetBytes(bBytes)
    
    	if a.Sign() <= 0 || b.Sign() <= 0 {
    		return true // can only test positive arguments
    	}
    
    	d := new(Int).lehmerGCD(nil, nil, a, b)
    	d0, _, _ := euclidExtGCD(a, b)
    
    	return d.Cmp(d0) == 0
    }
    
    func checkLehmerExtGcd(aBytes, bBytes []byte) bool {
    	a := new(Int).SetBytes(aBytes)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_test.cc

        tensorflow::AttrValue attr;
        for (const string& v : list) {
          attr.mutable_list()->add_s(v);
        }
        string bytes;
        attr.SerializeToString(&bytes);
        TF_SetAttrValueProto(desc, tensorflow::kColocationAttrName, bytes.data(),
                             bytes.size(), s_);
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      }
    
      void VerifyCollocation(TF_Operation* op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
Back to top