node-blte

所属分类:工具库
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2017-12-14 12:55:58
上 传 者sh-1993
说明:  no intro
(Node JS file reader for the BLTE format found in Blizzard Entertainment games.,)

文件列表:
BLTEReader.js (6677, 2017-12-14)
LICENSE (1085, 2017-12-14)
package-lock.json (1583, 2017-12-14)
package.json (698, 2017-12-14)
salsa20.js (8531, 2017-12-14)

# BLTEReader This module provides a NodeJS reader for the BLTE file-format found in games by Blizzard Entertainment. The BLTEReader class is an extension of the [Bufo](https://github.com/Kruithne/node-bufo) buffer utility class. ## Installing ``` npm install node-blte ``` ## Usage ```javascript // Import module, naturally... const BLTEReader = require('node-blte'); // Register encryption keys (for encrypted blocks). BLTEReader.registerDecryptionKeys({ '213D67C1543A63A9': '1F8D467F5D6D411F8A548B6329A5087E', '2BB68ACDC6254F79': '76583BDACD5257A3F73D1598A2CA2D99' }); let key = 'a19e2d57adf9830d989e3dad7dd56cec'; let buffer = obtainBufferSomehow(); // Create a new BLTEReader from an existing buffer (or Bufo instance). let reader = new BLTEReader(buffer, key); // `reader` can now be used just like a normal Bufo instance, and will automatically // decompress and decrypt blocks (using given keys) as needed. // If you need all blocks to be pre-processed (buffer transfer, etc), call `readAllBlocks()` first. ```

近期下载者

相关文件


收藏者