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

Method write

src/frontend/swo/sources/socket.ts:358–367  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

356 }
357
358 public write(data) {
359 try {
360 const header = PeMicroHeader.fromValues(PeHeaderType.TX_COMMAND, this.sequence, data.length);
361 this.client.write(header.getTxString() + data);
362 this.sequence = this.sequence + 1;
363 }
364 catch (e) {
365 throw e;
366 }
367 }
368}

Callers 3

createPipeMethod · 0.95
configureSWOMethod · 0.95
resumePipeMethod · 0.95

Calls 3

fromValuesMethod · 0.80
getTxStringMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected