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

Method writeFixed64

index.js:277–282  ·  view source on GitHub ↗

@param {number} val

(val)

Source from the content-addressed store, hash-verified

275
276 /** @param {number} val */
277 writeFixed64(val) {
278 this.realloc(8);
279 this.dataView.setInt32(this.pos, val & -1, true);
280 this.dataView.setInt32(this.pos + 4, Math.floor(val * SHIFT_RIGHT_32), true);
281 this.pos += 8;
282 }
283
284 /** @param {number} val */
285 writeSFixed64(val) {

Callers 3

writeFixed64FieldMethod · 0.95
writePackedFixed64Function · 0.80
pbf.test.jsFile · 0.80

Calls 1

reallocMethod · 0.95

Tested by

no test coverage detected