| | 244 | public function addint($key, $num) |
| | 245 | { |
| | 246 | $cmd = pack('c*', 0xC8,0x60); |
| | 247 | $this->_doRequest($cmd, array($key, $num)); |
| | 248 | if ($this->_getResponse() === false) { |
| | 249 | return false; |
| | 250 | } |
| | 251 | return $this->_getInt4(); |
| | 252 | } |
| | 253 | |
| | 254 | public function adddouble($key, $integ, $fract) |
| | 255 | { |
| | 256 | $cmd = pack('c*', 0xC8,0x61); |
| | 257 | $this->_doRequest($cmd, array($key, $intteg, $fract)); |
| | 258 | if ($this->_getResponse() === false) { |
| | 259 | return false; |
| | 260 | } |
| | 261 | return array($this->_getInt8(), $this->_getInt8()); |
| | 262 | } |
| | 263 | |