Show
Ignore:
Timestamp:
09/16/08 20:39:09 (4 months ago)
Author:
cocoiti
Message:

method addintを追加した

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/php/Net_TokyoTyrant/trunk/Net/TokyoTyrant.php

    r19048 r19373  
    7070                continue; 
    7171            }  
    72              
     72 
    7373            $int .= pack('N', $value); 
    7474        } 
     
    242242    } 
    243243     
     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 
    244264    public function vsize($key) 
    245265    {