docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
Build a file patching utility that can apply binary patches to files at specific offsets.
/**
* Applies a binary patch to a file at the specified byte offset.
*
* @param {string} filePath - Path to the file to patch
* @param {number} offset - Byte offset where the patch should be written
* @param {Buffer|string} data - The patch data to write
* @returns {Promise<void>} Resolves when the patch is successfully applied
*/
async function applyPatch(filePath, offset, data) {
// IMPLEMENTATION HERE
}
module.exports = {
applyPatch
};Provides in-memory filesystem operations with stream support.