MCPcopy Index your code
hub / github.com/PrairieLearn/PrairieLearn / writeEncoding

Function writeEncoding

public/javascripts/socket.io.js:1227–1234  ·  view source on GitHub ↗
(bloblessData)

Source from the content-addressed store, hash-verified

1225 function encodeAsBinary(obj, callback) {
1226
1227 function writeEncoding(bloblessData) {
1228 var deconstruction = binary.deconstructPacket(bloblessData);
1229 var pack = encodeAsString(deconstruction.packet);
1230 var buffers = deconstruction.buffers;
1231
1232 buffers.unshift(pack); // add packet info to beginning of data list
1233 callback(buffers); // write all the buffers
1234 }
1235
1236 binary.removeBlobs(obj, writeEncoding);
1237 }

Callers

nothing calls this directly

Calls 2

encodeAsStringFunction · 0.85
callbackFunction · 0.85

Tested by

no test coverage detected