MCPcopy Index your code
hub / github.com/creationix/js-git / packHeader

Function packHeader

lib/pack-codec.js:283–292  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

281}
282
283function packHeader(length) {
284 return bodec.fromArray([
285 0x50, 0x41, 0x43, 0x4b, // PACK
286 0, 0, 0, 2, // version 2
287 length >> 24, // Num of objects
288 (length >> 16) & 0xff,
289 (length >> 8) & 0xff,
290 length & 0xff
291 ]);
292}
293
294function packFrame(item) {
295 var length = item.body.length;

Callers 1

encodePackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected