|
|
@ -209,6 +209,12 @@ func (data Data) GetInt16(key string) (int16, error) {
|
|
|
|
return int16(value), nil
|
|
|
|
return int16(value), nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// MustGetInt16 強制取得16位元整數
|
|
|
|
|
|
|
|
func (data Data) MustGetInt16(key string) uint16 {
|
|
|
|
|
|
|
|
value, _ := data.GetUint16(key)
|
|
|
|
|
|
|
|
return value
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// GetUint16 取得16位元正整數
|
|
|
|
// GetUint16 取得16位元正整數
|
|
|
|
func (data Data) GetUint16(key string) (uint16, error) {
|
|
|
|
func (data Data) GetUint16(key string) (uint16, error) {
|
|
|
|
value, err := data.GetInt64(key)
|
|
|
|
value, err := data.GetInt64(key)
|
|
|
|