MCPcopy Create free account
hub / github.com/CloudBoost/cloudboost / writeEncoding

Function writeEncoding

sdk/src/CloudSocketClientLib.js:6611–6618  ·  view source on GitHub ↗
(bloblessData)

Source from the content-addressed store, hash-verified

6609 function encodeAsBinary(obj, callback) {
6610
6611 function writeEncoding(bloblessData) {
6612 var deconstruction = binary.deconstructPacket(bloblessData);
6613 var pack = encodeAsString(deconstruction.packet);
6614 var buffers = deconstruction.buffers;
6615
6616 buffers.unshift(pack); // add packet info to beginning of data list
6617 callback(buffers); // write all the buffers
6618 }
6619
6620 binary.removeBlobs(obj, writeEncoding);
6621 }

Callers

nothing calls this directly

Calls 2

encodeAsStringFunction · 0.70
callbackFunction · 0.70

Tested by

no test coverage detected