Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for DecodeFloat64 (0.15 sec)

  1. test/fixedbugs/issue57955.go

    func DecodeUint16(b []byte) (uint16, int) {
    	return 0, 0
    }
    
    func DecodeFloat64(b []byte) (float64, int) {
    	return 0, 0
    }
    
    func Decode[T any](b []byte) (T, int) {
    	switch any(*new(T)).(type) {
    	case int16:
    		v, n := DecodeInt16(b)
    		return any(v).(T), n
    	case uint16:
    		v, n := DecodeUint16(b)
    		return any(v).(T), n
    	case float64:
    		v, n := DecodeFloat64(b)
    		return any(v).(T), n
    	default:
    		panic("")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 19:29:08 UTC 2023
    - 794 bytes
    - Viewed (0)
Back to top