Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for cvtInt (0.25 sec)

  1. src/reflect/value.go

    // for classes of conversions. For example, the first function, cvtInt,
    // takes any value v of signed int type and returns the value converted
    // to type t, where t is any signed or unsigned int type.
    
    // convertOp: intXX -> [u]intXX
    func cvtInt(v Value, t Type) Value {
    	return makeInt(v.flag.ro(), uint64(v.Int()), t)
    }
    
    // convertOp: uintXX -> [u]intXX
    func cvtUint(v Value, t Type) Value {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
Back to top