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

Method writeMessageBegin

lib/php/lib/Protocol/TCompactProtocol.php:169–180  ·  view source on GitHub ↗
($name, $type, $seqid)

Source from the content-addressed store, hash-verified

167 }
168
169 public function writeMessageBegin($name, $type, $seqid)
170 {
171 $written =
172 $this->writeUByte(TCompactProtocol::PROTOCOL_ID) +
173 $this->writeUByte(TCompactProtocol::VERSION |
174 ($type << TCompactProtocol::TYPE_SHIFT_AMOUNT)) +
175 $this->writeVarint($seqid) +
176 $this->writeString($name);
177 $this->state = TCompactProtocol::STATE_VALUE_WRITE;
178
179 return $written;
180 }
181
182 public function writeMessageEnd()
183 {

Callers

nothing calls this directly

Calls 3

writeUByteMethod · 0.95
writeVarintMethod · 0.95
writeStringMethod · 0.95

Tested by

no test coverage detected