Lines Matching refs:start

19  * @param {number} start Start of the data.
23 function readBool(bufferDecoder, start) {
24 const {lowBits, highBits} = bufferDecoder.getVarint(start);
31 * @param {number} start Start of the data.
35 function readBytes(bufferDecoder, start) {
36 return readDelimited(bufferDecoder, start).asByteString();
42 * @param {number} start Start of the data.
46 function readInt32(bufferDecoder, start) {
50 return bufferDecoder.getUnsignedVarint32At(start) | 0;
56 * @param {number} start Start of the data.
60 function readInt64(bufferDecoder, start) {
61 const {lowBits, highBits} = bufferDecoder.getVarint(start);
68 * @param {number} start Start of the data.
72 function readFixed32(bufferDecoder, start) {
73 return bufferDecoder.getUint32(start);
79 * @param {number} start Start of the data.
83 function readFloat(bufferDecoder, start) {
84 return bufferDecoder.getFloat32(start);
90 * @param {number} start Start of the data.
94 function readSfixed64(bufferDecoder, start) {
95 const lowBits = bufferDecoder.getInt32(start);
96 const highBits = bufferDecoder.getInt32(start + 4);
103 * @param {number} start Start of the data.
107 function readSint32(bufferDecoder, start) {
108 const bits = bufferDecoder.getUnsignedVarint32At(start);
116 * @param {number} start Start of the data.
120 function readSint64(bufferDecoder, start) {
121 const {lowBits, highBits} = bufferDecoder.getVarint(start);
131 * @param {number} start Start of the data.
135 function readDelimited(bufferDecoder, start) {
136 const unsignedLength = bufferDecoder.getUnsignedVarint32At(start);
143 * @param {number} start Start of the data.
147 function readString(bufferDecoder, start) {
148 return readDelimited(bufferDecoder, start).asString();
154 * @param {number} start Start of the data.
158 function readUint32(bufferDecoder, start) {
159 return bufferDecoder.getUnsignedVarint32At(start);
165 * @param {number} start Start of the data.
169 function readDouble(bufferDecoder, start) {
170 return bufferDecoder.getFloat64(start);
176 * @param {number} start Start of the data.
180 function readSfixed32(bufferDecoder, start) {
181 return bufferDecoder.getInt32(start);
192 * @param {number} start Start of the data.
196 function readPackedBool(bufferDecoder, start) {
197 return readPacked(bufferDecoder, start, readBool);
204 * @param {number} start Start of the data.
208 function readPackedDouble(bufferDecoder, start) {
209 return readPacked(bufferDecoder, start, readDouble);
216 * @param {number} start Start of the data.
220 function readPackedFixed32(bufferDecoder, start) {
221 return readPacked(bufferDecoder, start, readFixed32);
228 * @param {number} start Start of the data.
232 function readPackedFloat(bufferDecoder, start) {
233 return readPacked(bufferDecoder, start, readFloat);
240 * @param {number} start Start of the data.
244 function readPackedInt32(bufferDecoder, start) {
245 return readPacked(bufferDecoder, start, readInt32);
252 * @param {number} start Start of the data.
256 function readPackedInt64(bufferDecoder, start) {
257 return readPacked(bufferDecoder, start, readInt64);
264 * @param {number} start Start of the data.
268 function readPackedSfixed32(bufferDecoder, start) {
269 return readPacked(bufferDecoder, start, readSfixed32);
276 * @param {number} start Start of the data.
280 function readPackedSfixed64(bufferDecoder, start) {
281 return readPacked(bufferDecoder, start, readSfixed64);
288 * @param {number} start Start of the data.
292 function readPackedSint32(bufferDecoder, start) {
293 return readPacked(bufferDecoder, start, readSint32);
300 * @param {number} start Start of the data.
304 function readPackedSint64(bufferDecoder, start) {
305 return readPacked(bufferDecoder, start, readSint64);
312 * @param {number} start Start of the data.
316 function readPackedUint32(bufferDecoder, start) {
317 return readPacked(bufferDecoder, start, readUint32);
323 * @param {number} start Start of the data.
329 function readPacked(bufferDecoder, start, valueFunction) {
331 const unsignedLength = bufferDecoder.getUnsignedVarint32At(start);