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

Method fromValues

src/frontend/swo/sources/socket.ts:181–187  ·  view source on GitHub ↗
(type: PeHeaderType, sequence: number, dataLength: number)

Source from the content-addressed store, hash-verified

179 }
180
181 public static fromValues(type: PeHeaderType, sequence: number, dataLength: number): PeMicroHeader {
182 const cls = new PeMicroHeader();
183 cls.type = type;
184 cls.sequence = sequence;
185 cls.dataLength = dataLength;
186 return cls;
187 }
188
189 public static fromBuffer(buffer: Buffer): PeMicroHeader {
190 const cls = new PeMicroHeader();

Callers 1

writeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected