fix deprecated warnings on Buffer class (#580)

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>

Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
This commit is contained in:
Denis Barbaron
2022-09-16 16:07:49 +02:00
committed by GitHub
parent da6c786a51
commit 878171ec24
8 changed files with 11622 additions and 11355 deletions

View File

@@ -5,7 +5,7 @@ var HEADER_SIZE = 4
function ForwardReader() {
stream.Transform.call(this)
this._header = new Buffer(HEADER_SIZE)
this._header = Buffer.alloc(HEADER_SIZE)
this._needLength = -HEADER_SIZE
this._target = 0
}