mirror of
https://github.com/wechat-miniprogram/minigame-tuanjie-transform-sdk.git
synced 2025-11-13 03:35:55 +08:00
9 lines
320 B
Plaintext
9 lines
320 B
Plaintext
|
|
mergeInto(LibraryManager.library, {
|
||
|
|
_WebMD5: function(rawData, dataLength, result) {
|
||
|
|
var data = new Uint8Array(Module.HEAPU8.buffer, rawData, dataLength);
|
||
|
|
var md5Result = window.md5WASM(data, true); // Assuming this always returns a Uint8Array of 16 bytes
|
||
|
|
|
||
|
|
Module.HEAPU8.set(md5Result, result);
|
||
|
|
}
|
||
|
|
});
|