File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ exports.concat = function (buffs) {
9696 return Buffer . concat ( buffs ) ;
9797} ;
9898
99- exports [ "concat'" ] = function ( buffs ) {
99+ exports . concatToLength = function ( buffs ) {
100100 return function ( totalLength ) {
101101 return Buffer . concat ( buffs , totalLength ) ;
102102 } ;
Original file line number Diff line number Diff line change @@ -100,7 +100,10 @@ foreign import concat :: Array ImmutableBuffer -> ImmutableBuffer
100100
101101-- | Concatenates a list of buffers, combining them into a new buffer of the
102102-- | specified length.
103- foreign import concat' :: Array ImmutableBuffer -> Int -> ImmutableBuffer
103+ concat' :: Array ImmutableBuffer -> Int -> ImmutableBuffer
104+ concat' = concatToLength
105+
106+ foreign import concatToLength :: Array ImmutableBuffer -> Int -> ImmutableBuffer
104107
105108-- | Creates a new buffer slice that shares the memory of the original buffer.
106109foreign import slice :: Offset -> Offset -> ImmutableBuffer -> ImmutableBuffer
You can’t perform that action at this time.
0 commit comments