Given a pointer ptr
to a null-terminated UTF8-encoded string in the
Emscripten HEAP, returns a copy of that string as a JavaScript String
object.
A pointer to a null-terminated UTF8-encoded string in the Emscripten HEAP.
An optional length that specifies the maximum number of bytes to read. Omit to read until the null-terminator.
Free an allocated block of memory.
Pointer to a memory block previously allocated with malloc
.
Allocate a block of {@link size} bytes of memory in Emscripten HEAP
Size of the memory block, in bytes.
Returns a pointer to the beginning of the block.
Creates an instance of StreamCencrypt that can be later used to decrypt file created using this very key.
ekey, extracted from the request or end of the file.
seed to generate simple key.
stage 1 key for EncV2 decryption.
stage 2 key for EncV2 decryption.
a pointer to the encrypt class.
Decrypt
Encryptor instance created using createInstWidthEKey.
Pointer to buffer allocated using _malloc. Data can be written here using writeArrayToMemory.
Offset of the buffer from original file. This parameter is required to derive correct key.
Size of the provided buffer.
Detect embedded ekey position using the end-of-file buffer. Recommanded size of detection buffer is 40.
WASM ptr with size from sizeof_qmc_detection.
WASM ptr points to the beginning of the detection buffer.
size of detection buffer.
Gets a value at a specific memory address at run-time. NOTE: it only does aligned write and read.
A pointer (number) representing the memory address.
An LLVM IR type as a string.
value at a specific address.
Get the size of qmc_detection struct.
Write an uint8 array to the Emscripten HEAP.
Data to be written inside the Emscripten HEAP.
Address pointer
Generated using TypeDoc
Emscripten HEAP, use this for raw memory access.