You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
var Buffer = require('buffer').Buffer;
var LZ4 = require('lz4');
var input = Buffer.from("你好");
var output = Buffer.alloc( LZ4.encodeBound(input.length));
var compressedSize = LZ4.encodeBlock(input, output);
output = output.slice(0, compressedSize);
console.log(output);//length is 0
The text was updated successfully, but these errors were encountered:
var Buffer = require('buffer').Buffer;
var LZ4 = require('lz4');
var input = Buffer.from("你好");
var output = Buffer.alloc( LZ4.encodeBound(input.length));
var compressedSize = LZ4.encodeBlock(input, output);
output = output.slice(0, compressedSize);
console.log(output);//length is 0
The text was updated successfully, but these errors were encountered: