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

Method writeJSONInteger

lib/php/lib/Protocol/TJSONProtocol.php:220–233  ·  view source on GitHub ↗
($num)

Source from the content-addressed store, hash-verified

218 }
219
220 private function writeJSONInteger($num)
221 {
222 $this->context_->write();
223
224 if ($this->context_->escapeNum()) {
225 $this->trans_->write(self::QUOTE);
226 }
227
228 $this->trans_->write($num);
229
230 if ($this->context_->escapeNum()) {
231 $this->trans_->write(self::QUOTE);
232 }
233 }
234
235 private function writeJSONDouble($num)
236 {

Callers 10

writeMessageBeginMethod · 0.95
writeFieldBeginMethod · 0.95
writeMapBeginMethod · 0.95
writeListBeginMethod · 0.95
writeSetBeginMethod · 0.95
writeBoolMethod · 0.95
writeByteMethod · 0.95
writeI16Method · 0.95
writeI32Method · 0.95
writeI64Method · 0.95

Calls 2

writeMethod · 0.65
escapeNumMethod · 0.45

Tested by

no test coverage detected