コード例 #1
0
 public function __construct($trans)
 {
     $this->contexts = new \HH\Vector(array());
     if (!$trans instanceof IThriftBufferedTransport) {
         $trans = new TBufferedTransport($trans);
     }
     $this->bufTrans = $trans;
     parent::__construct($trans);
     $this->contexts->add(new TSimpleJSONProtocolContext($this->trans_, $this->bufTrans));
 }
コード例 #2
0
 public function __construct($trans, $strictRead = false, $strictWrite = true)
 {
     parent::__construct($trans);
     $this->strictRead_ = $strictRead;
     $this->strictWrite_ = $strictWrite;
     if (\hacklib_equals(pack("S", 1), "")) {
         $this->littleendian_ = true;
     }
     $this->memory_limit = self::getBytes(ini_get("memory_limit"));
 }
コード例 #3
0
 public function __construct($trans, $strictRead = false, $strictWrite = true)
 {
     parent::__construct($trans);
     $this->strictRead_ = $strictRead;
     $this->strictWrite_ = $strictWrite;
     if (pack('S', 1) == "") {
         $this->littleendian_ = true;
     }
     $this->memory_limit = self::getBytes(ini_get('memory_limit'));
 }
コード例 #4
0
ファイル: TProtocol.php プロジェクト: quequan/Web
 public function __construct($trans, $strictRead = false, $strictWrite = true)
 {
     parent::__construct($trans);
     $this->strictRead_ = $strictRead;
     $this->strictWrite_ = $strictWrite;
 }
コード例 #5
0
 public function __construct($trans)
 {
     parent::__construct($trans);
 }
コード例 #6
0
 public function __construct($val)
 {
     $this->top = new ArrayIterator(array($val));
     $this->stack = new \HH\Vector(array($this->top));
     parent::__construct(new TNullTransport());
 }