MCPcopy
hub / github.com/signalapp/Signal-Desktop / encode

Method encode

packages/lame/index.mjs:33–44  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

31 }
32
33 encode(data) {
34 if (data.length > input.length) {
35 throw new Error(`Invalid sample count, expected: ${input.length}`);
36 }
37
38 input.set(data);
39 const size = _wrapper_encode(this.#gf, data.length);
40 if (size < 0) {
41 throw new Error(`Failed to encode: ${size}`);
42 }
43 return output.subarray(0, size);
44 }
45
46 flush() {
47 const size = _wrapper_flush(this.#gf);

Callers 15

buildGroupLinkFunction · 0.80
uploadAvatarFunction · 0.80
buildGroupTitleBufferFunction · 0.80
buildGroupProtoFunction · 0.80
modifyGroupV2Function · 0.80
frameFunction · 0.80
createRecordsFunction · 0.80
sendPollTerminateFunction · 0.80
sendDeleteForEveryoneFunction · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected