MCPcopy Create free account
hub / github.com/apache/avro / writeHeader

Method writeHeader

lang/php/lib/DataFile/AvroDataIOWriter.php:139–148  ·  view source on GitHub ↗

* Writes the header of the AvroIO object container */

()

Source from the content-addressed store, hash-verified

137 * Writes the header of the AvroIO object container
138 */
139 private function writeHeader()
140 {
141 $this->write(AvroDataIO::magic());
142 $this->datum_writer->writeData(
143 AvroDataIO::metadataSchema(),
144 $this->metadata,
145 $this->encoder
146 );
147 $this->write($this->sync_marker);
148 }
149
150 /**
151 * @param string $bytes

Callers 1

__constructMethod · 0.95

Calls 4

writeMethod · 0.95
magicMethod · 0.80
writeDataMethod · 0.80
metadataSchemaMethod · 0.80

Tested by

no test coverage detected