File tree 2 files changed +5
-2
lines changed
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) {
96
96
return Buffer . concat ( buffs ) ;
97
97
} ;
98
98
99
- exports [ "concat'" ] = function ( buffs ) {
99
+ exports . concatToLength = function ( buffs ) {
100
100
return function ( totalLength ) {
101
101
return Buffer . concat ( buffs , totalLength ) ;
102
102
} ;
Original file line number Diff line number Diff line change @@ -100,7 +100,10 @@ foreign import concat :: Array ImmutableBuffer -> ImmutableBuffer
100
100
101
101
-- | Concatenates a list of buffers, combining them into a new buffer of the
102
102
-- | 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
104
107
105
108
-- | Creates a new buffer slice that shares the memory of the original buffer.
106
109
foreign import slice :: Offset -> Offset -> ImmutableBuffer -> ImmutableBuffer
You can’t perform that action at this time.
0 commit comments