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

Method constructor

src/frontend/rtt_terminal.ts:258–265  ·  view source on GitHub ↗
(
        protected ptyTerm: PtyTerminal,
        protected encoding: string,
        protected scale: number)

Source from the content-addressed store, hash-verified

256 private hrTimer = new HrTimer();
257
258 constructor(
259 protected ptyTerm: PtyTerminal,
260 protected encoding: string,
261 protected scale: number) {
262 this.bytesRead = 0;
263 this.encoding = getBinaryEncoding(encoding);
264 this.scale = scale || 1;
265 }
266
267 public writeBinary(input: string | Buffer) {
268 const data: Buffer = Buffer.from(input);

Callers

nothing calls this directly

Calls 1

getBinaryEncodingFunction · 0.85

Tested by

no test coverage detected