* Writes the header of the AvroIO object container */
()
| 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 |
no test coverage detected