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

Method readLong

lang/php/lib/Datum/AvroIOBinaryDecoder.php:96–110  ·  view source on GitHub ↗

* @returns string|int */

()

Source from the content-addressed store, hash-verified

94 * @returns string|int
95 */
96 public function readLong()
97 {
98 $byte = ord($this->nextByte());
99 $bytes = array($byte);
100 while (0 != ($byte & 0x80)) {
101 $byte = ord($this->nextByte());
102 $bytes [] = $byte;
103 }
104
105 if (Avro::usesGmp()) {
106 return AvroGMP::decodeLongFromArray($bytes);
107 }
108
109 return self::decodeLongFromArray($bytes);
110 }
111
112 /**
113 * @param int[] array of byte ascii values

Callers 11

readIntMethod · 0.95
readBytesMethod · 0.95
skipBytesMethod · 0.95
skipArrayMethod · 0.95
skipMapMethod · 0.95
readBlockHeaderMethod · 0.45
readDataMethod · 0.45
readArrayMethod · 0.45
readMapMethod · 0.45
readUnionMethod · 0.45
skipUnionMethod · 0.45

Calls 3

nextByteMethod · 0.95
decodeLongFromArrayMethod · 0.95
usesGmpMethod · 0.80

Tested by

no test coverage detected