decodeConsole()
함수, 콘솔 분류
Decode a console buffer the host copied back into the events the CPU sink would receive.
import { decodeConsole } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
function decodeConsole( buffer: Uint32Array, log: ConsoleLog,): { events: ConsoleEvent[]; dropped: number }매개변수
bufferUint32ArraylogConsoleLog
반환값
{ events: ConsoleEvent[]; dropped: number }
설명
buffer is the whole storage buffer as u32 words: the cursor, the dropped count, then the
entries. The events come back in the order the CPU tier runs a dispatch in, by invocation
(z, then y, then x) and, within one invocation, in the order the calls ran; each carries its
invocation. dropped counts the calls that did not fit the buffer.
소스
src/core/console.ts, 166행, 커밋 c66579bf 기준