MCPcopy Create free account
hub / github.com/apache/thrift / writeVarint

Method writeVarint

lib/php/lib/Protocol/TCompactProtocol.php:134–141  ·  view source on GitHub ↗
($data)

Source from the content-addressed store, hash-verified

132 }
133
134 public function writeVarint($data)
135 {
136 $out = $this->getVarint($data);
137 $result = TStringFuncFactory::create()->strlen($out);
138 $this->trans_->write($out, $result);
139
140 return $result;
141 }
142
143 public function readVarint(&$result)
144 {

Callers 8

writeMessageBeginMethod · 0.95
writeCollectionBeginMethod · 0.95
writeMapBeginMethod · 0.95
writeI16Method · 0.95
writeI32Method · 0.95
writeStringMethod · 0.95
writeI64Method · 0.95
testWriteVarintMethod · 0.45

Calls 4

getVarintMethod · 0.95
writeMethod · 0.65
strlenMethod · 0.45
createMethod · 0.45

Tested by 1

testWriteVarintMethod · 0.36