2026-09-16 07:03:15 +00:00
|
|
|
// Module ID: 13752
|
|
|
|
|
// Function ID: 13753
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: GatewayZstdUtils
|
2026-09-16 07:03:15 +00:00
|
|
|
// Dependencies: [17, 1364, 13753, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: createZstdContextWeb, supportsZstd
|
|
|
|
|
|
2026-09-16 07:03:15 +00:00
|
|
|
// Module 13752 (GatewayZstdUtils)
|
2026-09-10 05:38:07 +00:00
|
|
|
import _mod17 from "module_17" /* 17 */;
|
2026-09-16 07:03:15 +00:00
|
|
|
import NativeCompressionModuleDefault from "NativeCompressionModule" /* 13753 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const NativeModules = _mod17.NativeModules;
|
|
|
|
|
const result = size.fileFinishedImporting("modules/gateway/GatewayZstdUtils.native.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const supportsZstd = function supportsZstd() {
|
|
|
|
|
if (obj.isAndroid()) {
|
2026-09-10 05:38:07 +00:00
|
|
|
let flag = NativeCompressionModuleDefault.getConstants().supportsZstd;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
const DCDCompressionManager = NativeModules.DCDCompressionManager;
|
2026-07-29 08:29:29 +00:00
|
|
|
flag = undefined;
|
|
|
|
|
if (DCDCompressionManager != null) {
|
|
|
|
|
flag = DCDCompressionManager.supportsZstd;
|
|
|
|
|
}
|
|
|
|
|
if (flag == null) {
|
|
|
|
|
flag = false;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return flag;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const createZstdContextWeb = function createZstdContextWeb() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const error = new Error("Attempting to use createZstdContextWeb in a native context. Use MobileGatewayCompressionHandler instead.");
|
2026-07-20 16:05:17 +00:00
|
|
|
throw error;
|
|
|
|
|
};
|