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

Method skipMap

lang/php/lib/Datum/AvroIOBinaryDecoder.php:294–307  ·  view source on GitHub ↗
($writers_schema, AvroIOBinaryDecoder $decoder)

Source from the content-addressed store, hash-verified

292 }
293
294 public function skipMap($writers_schema, AvroIOBinaryDecoder $decoder)
295 {
296 $block_count = $decoder->readLong();
297 while (0 !== $block_count) {
298 if ($block_count < 0) {
299 $decoder->skip($this->readLong());
300 }
301 for ($i = 0; $i < $block_count; $i++) {
302 $decoder->skipString();
303 AvroIODatumReader::skipData($writers_schema->values(), $decoder);
304 }
305 $block_count = $decoder->readLong();
306 }
307 }
308
309 /**
310 * @returns int position of pointer in AvroIO instance

Callers 1

skipDataMethod · 0.45

Calls 5

readLongMethod · 0.95
skipDataMethod · 0.80
skipMethod · 0.45
skipStringMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected