MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / serialize

Function serialize

modules/crypt/ssl/ssl_handshake.js:225–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223 };
224 },
225 serialize() {
226 let qmt_unix_time = ((new Date()).getTime() / 1000) | 0; // in sec
227 let a = new Uint8Array(RNG.get(32));
228 a[0] = (qmt_unix_time >>> 24) & 255;
229 a[1] = (qmt_unix_time >>> 16) & 255;
230 a[2] = (qmt_unix_time >>> 8) & 255;
231 a[3] = qmt_unix_time & 255;
232 return a.buffer;
233 },
234 },
235 selectCipherSuite(peerSuites) {
236 for (var i = 0, suites = supportedCipherSuites; i < suites.length; i++) {

Callers

nothing calls this directly

Calls 2

getTimeMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected