MCPcopy Index your code
hub / github.com/GJDuck/e9patch / makeBytesEntry

Function makeBytesEntry

src/e9patch/e9json.cpp:587–594  ·  view source on GitHub ↗

* Create a BYTES template entry. */

Source from the content-addressed store, hash-verified

585 * Create a BYTES template entry.
586 */
587static Entry makeBytesEntry(std::vector<uint8_t> &bytes)
588{
589 Entry entry;
590 entry.kind = ENTRY_BYTES;
591 entry.length = (unsigned)bytes.size();
592 entry.bytes = dupBytes(bytes);
593 return entry;
594}
595
596/*
597 * Create a MACRO template entry.

Callers 2

parseTrampolineFunction · 0.85
parseBytesFunction · 0.85

Calls 2

dupBytesFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected