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

Method writeMessageBegin

lib/php/lib/Protocol/TJSONProtocol.php:453–460  ·  view source on GitHub ↗

* Writes the message header * * @param string $name Function name * @param int $type message type TMessageType::CALL or TMessageType::REPLY * @param int $seqid The sequence id of this message */

($name, $type, $seqid)

Source from the content-addressed store, hash-verified

451 * @param int $seqid The sequence id of this message
452 */
453 public function writeMessageBegin($name, $type, $seqid)
454 {
455 $this->writeJSONArrayStart();
456 $this->writeJSONInteger(self::VERSION);
457 $this->writeJSONString($name);
458 $this->writeJSONInteger($type);
459 $this->writeJSONInteger($seqid);
460 }
461
462 /**
463 * Close the message

Callers

nothing calls this directly

Calls 3

writeJSONArrayStartMethod · 0.95
writeJSONIntegerMethod · 0.95
writeJSONStringMethod · 0.95

Tested by

no test coverage detected