44 $this->transport->setAdapter($this);
71 protected function init($ftkey)
73 if(strlen($ftkey) != 32)
93 public function upload($ftkey, $seek, $data)
97 $size = strlen($data);
98 $seek = intval($seek);
106 $pack = $rest < $pack ? $rest : $pack;
107 $buff = substr($data, $seek, $pack);
134 public function download($ftkey, $size, $passthru = FALSE)
144 $size = intval($size);
149 for($seek = 0;$seek < $size;)
152 $pack = $rest < $pack ? $rest : $pack;
153 $data = $this->
getTransport()->read($rest < $pack ? $rest : $pack);
156 $buff->append($data);
165 if(strlen($buff) != $size)
183 $buff_size = fpassthru($this->
getTransport()->getStream());
185 if($buff_size != $size)