lib/encoder.js
function LZ4_compress (input, options) {
	var output = []
	var encoder = new Encoder(options)

	encoder.on('data', function (chunk) {
		output.push(chunk)
	})

	encoder.end(input)

	return Buffer.concat(output)
}
function LZ4_compress (input, options) {
	var output = []
	var encoder = new Encoder(options)

	encoder.on('data', function (chunk) {
		output.push(chunk)
	})

	encoder.end(input)

	return Buffer.concat(output)
}
function LZ4_compress ( input , options ) { var output = [ ] var encoder = new Encoder ( options ) encoder . on ( 'data' , function ( chunk ) { output . push ( chunk ) } ) encoder . end ( input ) return Buffer . concat ( output ) }
Encode an LZ4 stream
Encode an LZ4 stream