MCPcopy
hub / github.com/continuedev/continue / hexToUtf8Byte

Function hexToUtf8Byte

core/llm/llamaTokenizer.js:23–26  ·  view source on GitHub ↗
(hex)

Source from the content-addressed store, hash-verified

21};
22
23const hexToUtf8Byte = (hex) => {
24 const strippedHex = hex.replace(/<0x|>/g, "");
25 return parseInt(strippedHex, 16);
26};
27
28class PriorityQueue {
29 // PriorityQueue implementation is copied from https://stackoverflow.com/a/42919752 with minor refactoring

Callers 1

decodeMethod · 0.70

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected