• Home
  • Raw
  • Download

Lines Matching refs:bufferDecoder

23 function readBool(bufferDecoder, start) {  argument
24 const {lowBits, highBits} = bufferDecoder.getVarint(start);
35 function readBytes(bufferDecoder, start) { argument
36 return readDelimited(bufferDecoder, start).asByteString();
46 function readInt32(bufferDecoder, start) { argument
50 return bufferDecoder.getUnsignedVarint32At(start) | 0;
60 function readInt64(bufferDecoder, start) { argument
61 const {lowBits, highBits} = bufferDecoder.getVarint(start);
72 function readFixed32(bufferDecoder, start) { argument
73 return bufferDecoder.getUint32(start);
83 function readFloat(bufferDecoder, start) { argument
84 return bufferDecoder.getFloat32(start);
94 function readSfixed64(bufferDecoder, start) { argument
95 const lowBits = bufferDecoder.getInt32(start);
96 const highBits = bufferDecoder.getInt32(start + 4);
107 function readSint32(bufferDecoder, start) { argument
108 const bits = bufferDecoder.getUnsignedVarint32At(start);
120 function readSint64(bufferDecoder, start) { argument
121 const {lowBits, highBits} = bufferDecoder.getVarint(start);
135 function readDelimited(bufferDecoder, start) { argument
136 const unsignedLength = bufferDecoder.getUnsignedVarint32At(start);
137 return bufferDecoder.subBufferDecoder(bufferDecoder.cursor(), unsignedLength);
147 function readString(bufferDecoder, start) { argument
148 return readDelimited(bufferDecoder, start).asString();
158 function readUint32(bufferDecoder, start) { argument
159 return bufferDecoder.getUnsignedVarint32At(start);
169 function readDouble(bufferDecoder, start) { argument
170 return bufferDecoder.getFloat64(start);
180 function readSfixed32(bufferDecoder, start) { argument
181 return bufferDecoder.getInt32(start);
196 function readPackedBool(bufferDecoder, start) { argument
197 return readPacked(bufferDecoder, start, readBool);
208 function readPackedDouble(bufferDecoder, start) { argument
209 return readPacked(bufferDecoder, start, readDouble);
220 function readPackedFixed32(bufferDecoder, start) { argument
221 return readPacked(bufferDecoder, start, readFixed32);
232 function readPackedFloat(bufferDecoder, start) { argument
233 return readPacked(bufferDecoder, start, readFloat);
244 function readPackedInt32(bufferDecoder, start) { argument
245 return readPacked(bufferDecoder, start, readInt32);
256 function readPackedInt64(bufferDecoder, start) { argument
257 return readPacked(bufferDecoder, start, readInt64);
268 function readPackedSfixed32(bufferDecoder, start) { argument
269 return readPacked(bufferDecoder, start, readSfixed32);
280 function readPackedSfixed64(bufferDecoder, start) { argument
281 return readPacked(bufferDecoder, start, readSfixed64);
292 function readPackedSint32(bufferDecoder, start) { argument
293 return readPacked(bufferDecoder, start, readSint32);
304 function readPackedSint64(bufferDecoder, start) { argument
305 return readPacked(bufferDecoder, start, readSint64);
316 function readPackedUint32(bufferDecoder, start) { argument
317 return readPacked(bufferDecoder, start, readUint32);
329 function readPacked(bufferDecoder, start, valueFunction) { argument
331 const unsignedLength = bufferDecoder.getUnsignedVarint32At(start);
332 const dataStart = bufferDecoder.cursor();
333 while (bufferDecoder.cursor() < dataStart + unsignedLength) {
334 checkState(bufferDecoder.cursor() > 0);
335 result.push(valueFunction(bufferDecoder, bufferDecoder.cursor()));