MCPcopy Create free account
hub / github.com/mapbox/pbf / writeSFixed64

Method writeSFixed64

index.js:285–290  ·  view source on GitHub ↗

@param {number} val

(val)

Source from the content-addressed store, hash-verified

283
284 /** @param {number} val */
285 writeSFixed64(val) {
286 this.realloc(8);
287 this.dataView.setInt32(this.pos, val & -1, true);
288 this.dataView.setInt32(this.pos + 4, Math.floor(val * SHIFT_RIGHT_32), true);
289 this.pos += 8;
290 }
291
292 /** @param {number} val */
293 writeVarint(val) {

Callers 3

writeSFixed64FieldMethod · 0.95
writePackedSFixed64Function · 0.80
pbf.test.jsFile · 0.80

Calls 1

reallocMethod · 0.95

Tested by

no test coverage detected