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

Method write

modules/crypt/ssl/session_original.js:214–220  ·  view source on GitHub ↗
(s, data)

Source from the content-addressed store, hash-verified

212 return null;
213 }
214 write(s, data) {
215 if (data.byteLength > maxFragmentSize)
216 return -1; // too large
217 this.startTrace("packetize");
218 s.write(recordProtocol.packetize(this, recordProtocol.application_data, data));
219 return data.length;
220 }
221 close(s) {
222 this.startTrace("packetize");
223 s.write(SSLAlert.packetize(this, 0, SSLAlert.close_notify));

Callers

nothing calls this directly

Calls 2

startTraceMethod · 0.95
writeMethod · 0.65

Tested by

no test coverage detected