MCPcopy Create free account
hub / github.com/Marus/cortex-debug / getBinaryEncoding

Function getBinaryEncoding

src/frontend/rtt_terminal.ts:237–243  ·  view source on GitHub ↗
(enc: string)

Source from the content-addressed store, hash-verified

235}
236
237function getBinaryEncoding(enc: string): BinaryEncoding {
238 enc = enc ? enc.toLowerCase() : '';
239 if (!(enc in BinaryEncoding)) {
240 enc = BinaryEncoding.UNSIGNED;
241 }
242 return enc as BinaryEncoding;
243}
244
245function getTextEncoding(enc: string): TextEncoding {
246 enc = enc ? enc.toLowerCase() : '';

Callers 3

createTermNameMethod · 0.85
sanitizeEncodingsMethod · 0.85
constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected