export function createDiagnosticsBuffer ( solverID , timeToSolved ) { const arr = new Uint8Array ( 3 ) ; const view = new DataView ( arr . buffer ) ; view . setUint8 ( 0 , solverID ) ; view . setUint16 ( 1 , timeToSolved ) ; return arr ; }