File tree 9 files changed +27
-27
lines changed
9 files changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -4974,7 +4974,7 @@ class ResizeableBuffer{
4974
4974
constructor ( size = 100 ) {
4975
4975
this . size = size ;
4976
4976
this . length = 0 ;
4977
- this . buf = Buffer . alloc ( size ) ;
4977
+ this . buf = Buffer . allocUnsafe ( size ) ;
4978
4978
}
4979
4979
prepend ( val ) {
4980
4980
if ( isBuffer ( val ) ) {
@@ -4986,7 +4986,7 @@ class ResizeableBuffer{
4986
4986
}
4987
4987
}
4988
4988
const buf = this . buf ;
4989
- this . buf = Buffer . alloc ( this . size ) ;
4989
+ this . buf = Buffer . allocUnsafe ( this . size ) ;
4990
4990
val . copy ( this . buf , 0 ) ;
4991
4991
buf . copy ( this . buf , val . length ) ;
4992
4992
this . length += val . length ;
@@ -5013,7 +5013,7 @@ class ResizeableBuffer{
5013
5013
resize ( ) {
5014
5014
const length = this . length ;
5015
5015
this . size = this . size * 2 ;
5016
- const buf = Buffer . alloc ( this . size ) ;
5016
+ const buf = Buffer . allocUnsafe ( this . size ) ;
5017
5017
this . buf . copy ( buf , 0 , 0 , length ) ;
5018
5018
this . buf = buf ;
5019
5019
}
Original file line number Diff line number Diff line change @@ -4974,7 +4974,7 @@ class ResizeableBuffer{
4974
4974
constructor ( size = 100 ) {
4975
4975
this . size = size ;
4976
4976
this . length = 0 ;
4977
- this . buf = Buffer . alloc ( size ) ;
4977
+ this . buf = Buffer . allocUnsafe ( size ) ;
4978
4978
}
4979
4979
prepend ( val ) {
4980
4980
if ( isBuffer ( val ) ) {
@@ -4986,7 +4986,7 @@ class ResizeableBuffer{
4986
4986
}
4987
4987
}
4988
4988
const buf = this . buf ;
4989
- this . buf = Buffer . alloc ( this . size ) ;
4989
+ this . buf = Buffer . allocUnsafe ( this . size ) ;
4990
4990
val . copy ( this . buf , 0 ) ;
4991
4991
buf . copy ( this . buf , val . length ) ;
4992
4992
this . length += val . length ;
@@ -5013,7 +5013,7 @@ class ResizeableBuffer{
5013
5013
resize ( ) {
5014
5014
const length = this . length ;
5015
5015
this . size = this . size * 2 ;
5016
- const buf = Buffer . alloc ( this . size ) ;
5016
+ const buf = Buffer . allocUnsafe ( this . size ) ;
5017
5017
this . buf . copy ( buf , 0 , 0 , length ) ;
5018
5018
this . buf = buf ;
5019
5019
}
Original file line number Diff line number Diff line change @@ -4970,7 +4970,7 @@ class ResizeableBuffer{
4970
4970
constructor ( size = 100 ) {
4971
4971
this . size = size ;
4972
4972
this . length = 0 ;
4973
- this . buf = Buffer . alloc ( size ) ;
4973
+ this . buf = Buffer . allocUnsafe ( size ) ;
4974
4974
}
4975
4975
prepend ( val ) {
4976
4976
if ( isBuffer ( val ) ) {
@@ -4982,7 +4982,7 @@ class ResizeableBuffer{
4982
4982
}
4983
4983
}
4984
4984
const buf = this . buf ;
4985
- this . buf = Buffer . alloc ( this . size ) ;
4985
+ this . buf = Buffer . allocUnsafe ( this . size ) ;
4986
4986
val . copy ( this . buf , 0 ) ;
4987
4987
buf . copy ( this . buf , val . length ) ;
4988
4988
this . length += val . length ;
@@ -5009,7 +5009,7 @@ class ResizeableBuffer{
5009
5009
resize ( ) {
5010
5010
const length = this . length ;
5011
5011
this . size = this . size * 2 ;
5012
- const buf = Buffer . alloc ( this . size ) ;
5012
+ const buf = Buffer . allocUnsafe ( this . size ) ;
5013
5013
this . buf . copy ( buf , 0 , 0 , length ) ;
5014
5014
this . buf = buf ;
5015
5015
}
Original file line number Diff line number Diff line change @@ -4970,7 +4970,7 @@ class ResizeableBuffer{
4970
4970
constructor ( size = 100 ) {
4971
4971
this . size = size ;
4972
4972
this . length = 0 ;
4973
- this . buf = Buffer . alloc ( size ) ;
4973
+ this . buf = Buffer . allocUnsafe ( size ) ;
4974
4974
}
4975
4975
prepend ( val ) {
4976
4976
if ( isBuffer ( val ) ) {
@@ -4982,7 +4982,7 @@ class ResizeableBuffer{
4982
4982
}
4983
4983
}
4984
4984
const buf = this . buf ;
4985
- this . buf = Buffer . alloc ( this . size ) ;
4985
+ this . buf = Buffer . allocUnsafe ( this . size ) ;
4986
4986
val . copy ( this . buf , 0 ) ;
4987
4987
buf . copy ( this . buf , val . length ) ;
4988
4988
this . length += val . length ;
@@ -5009,7 +5009,7 @@ class ResizeableBuffer{
5009
5009
resize ( ) {
5010
5010
const length = this . length ;
5011
5011
this . size = this . size * 2 ;
5012
- const buf = Buffer . alloc ( this . size ) ;
5012
+ const buf = Buffer . allocUnsafe ( this . size ) ;
5013
5013
this . buf . copy ( buf , 0 , 0 , length ) ;
5014
5014
this . buf = buf ;
5015
5015
}
Original file line number Diff line number Diff line change @@ -4973,7 +4973,7 @@ var csv_parse = (function (exports) {
4973
4973
constructor ( size = 100 ) {
4974
4974
this . size = size ;
4975
4975
this . length = 0 ;
4976
- this . buf = Buffer . alloc ( size ) ;
4976
+ this . buf = Buffer . allocUnsafe ( size ) ;
4977
4977
}
4978
4978
prepend ( val ) {
4979
4979
if ( isBuffer ( val ) ) {
@@ -4985,7 +4985,7 @@ var csv_parse = (function (exports) {
4985
4985
}
4986
4986
}
4987
4987
const buf = this . buf ;
4988
- this . buf = Buffer . alloc ( this . size ) ;
4988
+ this . buf = Buffer . allocUnsafe ( this . size ) ;
4989
4989
val . copy ( this . buf , 0 ) ;
4990
4990
buf . copy ( this . buf , val . length ) ;
4991
4991
this . length += val . length ;
@@ -5012,7 +5012,7 @@ var csv_parse = (function (exports) {
5012
5012
resize ( ) {
5013
5013
const length = this . length ;
5014
5014
this . size = this . size * 2 ;
5015
- const buf = Buffer . alloc ( this . size ) ;
5015
+ const buf = Buffer . allocUnsafe ( this . size ) ;
5016
5016
this . buf . copy ( buf , 0 , 0 , length ) ;
5017
5017
this . buf = buf ;
5018
5018
}
Original file line number Diff line number Diff line change @@ -4973,7 +4973,7 @@ var csv_parse_sync = (function (exports) {
4973
4973
constructor ( size = 100 ) {
4974
4974
this . size = size ;
4975
4975
this . length = 0 ;
4976
- this . buf = Buffer . alloc ( size ) ;
4976
+ this . buf = Buffer . allocUnsafe ( size ) ;
4977
4977
}
4978
4978
prepend ( val ) {
4979
4979
if ( isBuffer ( val ) ) {
@@ -4985,7 +4985,7 @@ var csv_parse_sync = (function (exports) {
4985
4985
}
4986
4986
}
4987
4987
const buf = this . buf ;
4988
- this . buf = Buffer . alloc ( this . size ) ;
4988
+ this . buf = Buffer . allocUnsafe ( this . size ) ;
4989
4989
val . copy ( this . buf , 0 ) ;
4990
4990
buf . copy ( this . buf , val . length ) ;
4991
4991
this . length += val . length ;
@@ -5012,7 +5012,7 @@ var csv_parse_sync = (function (exports) {
5012
5012
resize ( ) {
5013
5013
const length = this . length ;
5014
5014
this . size = this . size * 2 ;
5015
- const buf = Buffer . alloc ( this . size ) ;
5015
+ const buf = Buffer . allocUnsafe ( this . size ) ;
5016
5016
this . buf . copy ( buf , 0 , 0 , length ) ;
5017
5017
this . buf = buf ;
5018
5018
}
Original file line number Diff line number Diff line change 4976
4976
constructor ( size = 100 ) {
4977
4977
this . size = size ;
4978
4978
this . length = 0 ;
4979
- this . buf = Buffer . alloc ( size ) ;
4979
+ this . buf = Buffer . allocUnsafe ( size ) ;
4980
4980
}
4981
4981
prepend ( val ) {
4982
4982
if ( isBuffer ( val ) ) {
4988
4988
}
4989
4989
}
4990
4990
const buf = this . buf ;
4991
- this . buf = Buffer . alloc ( this . size ) ;
4991
+ this . buf = Buffer . allocUnsafe ( this . size ) ;
4992
4992
val . copy ( this . buf , 0 ) ;
4993
4993
buf . copy ( this . buf , val . length ) ;
4994
4994
this . length += val . length ;
5015
5015
resize ( ) {
5016
5016
const length = this . length ;
5017
5017
this . size = this . size * 2 ;
5018
- const buf = Buffer . alloc ( this . size ) ;
5018
+ const buf = Buffer . allocUnsafe ( this . size ) ;
5019
5019
this . buf . copy ( buf , 0 , 0 , length ) ;
5020
5020
this . buf = buf ;
5021
5021
}
Original file line number Diff line number Diff line change 4976
4976
constructor ( size = 100 ) {
4977
4977
this . size = size ;
4978
4978
this . length = 0 ;
4979
- this . buf = Buffer . alloc ( size ) ;
4979
+ this . buf = Buffer . allocUnsafe ( size ) ;
4980
4980
}
4981
4981
prepend ( val ) {
4982
4982
if ( isBuffer ( val ) ) {
4988
4988
}
4989
4989
}
4990
4990
const buf = this . buf ;
4991
- this . buf = Buffer . alloc ( this . size ) ;
4991
+ this . buf = Buffer . allocUnsafe ( this . size ) ;
4992
4992
val . copy ( this . buf , 0 ) ;
4993
4993
buf . copy ( this . buf , val . length ) ;
4994
4994
this . length += val . length ;
5015
5015
resize ( ) {
5016
5016
const length = this . length ;
5017
5017
this . size = this . size * 2 ;
5018
- const buf = Buffer . alloc ( this . size ) ;
5018
+ const buf = Buffer . allocUnsafe ( this . size ) ;
5019
5019
this . buf . copy ( buf , 0 , 0 , length ) ;
5020
5020
this . buf = buf ;
5021
5021
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ class ResizeableBuffer{
4
4
constructor ( size = 100 ) {
5
5
this . size = size ;
6
6
this . length = 0 ;
7
- this . buf = Buffer . alloc ( size ) ;
7
+ this . buf = Buffer . allocUnsafe ( size ) ;
8
8
}
9
9
prepend ( val ) {
10
10
if ( Buffer . isBuffer ( val ) ) {
@@ -16,7 +16,7 @@ class ResizeableBuffer{
16
16
}
17
17
}
18
18
const buf = this . buf ;
19
- this . buf = Buffer . alloc ( this . size ) ;
19
+ this . buf = Buffer . allocUnsafe ( this . size ) ;
20
20
val . copy ( this . buf , 0 ) ;
21
21
buf . copy ( this . buf , val . length ) ;
22
22
this . length += val . length ;
@@ -43,7 +43,7 @@ class ResizeableBuffer{
43
43
resize ( ) {
44
44
const length = this . length ;
45
45
this . size = this . size * 2 ;
46
- const buf = Buffer . alloc ( this . size ) ;
46
+ const buf = Buffer . allocUnsafe ( this . size ) ;
47
47
this . buf . copy ( buf , 0 , 0 , length ) ;
48
48
this . buf = buf ;
49
49
}
You can’t perform that action at this time.
0 commit comments