MCPcopy Create free account
hub / github.com/amqp-node/amqplib / array

Function array

test/codec.test.js:438–438  ·  view source on GitHub ↗
(...elements)

Source from the content-addressed store, hash-verified

436 const byte = (n) => Buffer.from([0x62, n]);
437 const table = (...entries) => sized('F', Buffer.concat(entries));
438 const array = (...elements) => sized('A', Buffer.concat(elements));
439 const timestamp = (hex) => Buffer.concat([Buffer.from('T'), Buffer.from(hex, 'hex')]);
440
441 const unknownType = table(key('!'), string('bogus'), key('value'), byte(10));

Callers 1

codec.test.jsFile · 0.85

Calls 1

sizedFunction · 0.85

Tested by

no test coverage detected