2026-09-05 10:56:28 +00:00
|
|
|
// Module ID: 1224
|
|
|
|
|
// Function ID: 1225
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: ProtoUtils
|
2026-09-05 10:56:28 +00:00
|
|
|
// Dependencies: [1188, 2]
|
|
|
|
|
// Exports: b64ToProto, protoToB64
|
|
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
// Module 1224 (ProtoUtils)
|
2026-09-05 10:56:28 +00:00
|
|
|
import _mod1188 from "module_1188" /* 1188 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-05 10:56:28 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const BINARY_READ_OPTIONS = {
|
|
|
|
|
readerFactory(dependencyMap) {
|
2026-09-05 10:56:28 +00:00
|
|
|
const textDecoder = new TextDecoder("utf-8");
|
2026-09-10 05:38:07 +00:00
|
|
|
const binaryReader = new _mod1188.BinaryReader(dependencyMap, textDecoder);
|
2026-09-05 10:56:28 +00:00
|
|
|
return binaryReader;
|
|
|
|
|
}
|
|
|
|
|
};
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("utils/ProtoUtils.tsx");
|
2026-09-05 10:56:28 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
export { BINARY_READ_OPTIONS };
|
2026-09-05 10:56:28 +00:00
|
|
|
export const b64ToProto = function b64ToProto(fromBinary, actionData) {
|
|
|
|
|
let fromBinaryResult = null;
|
|
|
|
|
if (null != actionData) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj = _mod1188;
|
2026-09-05 10:56:28 +00:00
|
|
|
fromBinaryResult = fromBinary.fromBinary(obj.base64decode(actionData), obj);
|
|
|
|
|
}
|
|
|
|
|
return fromBinaryResult;
|
|
|
|
|
};
|
|
|
|
|
export const protoToB64 = function protoToB64(toBinary, favoriteGifs) {
|
|
|
|
|
return _mod1188.base64encode(toBinary.toBinary(favoriteGifs));
|
|
|
|
|
};
|