You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BufferList.d.ts
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,14 @@ interface BufferList {
45
45
46
46
append(buffer: BufferListAcceptedTypes): this;
47
47
48
+
/**
49
+
* Adds an additional buffer or BufferList at the beginning of the internal list.
50
+
* this is returned so it can be chained.
51
+
*
52
+
* @param buffer
53
+
*/
54
+
prepend(buffer: BufferListAcceptedTypes): this;
55
+
48
56
/**
49
57
* Will return the byte at the specified index.
50
58
* @param index
@@ -169,6 +177,11 @@ interface BufferList {
169
177
encoding?: string
170
178
): number;
171
179
180
+
/**
181
+
* Will return the internal list of buffers.
182
+
*/
183
+
getBuffers(): Buffer[];
184
+
172
185
/**
173
186
* All of the standard byte-reading methods of the Buffer interface are implemented and will operate across internal Buffer boundaries transparently.
174
187
* See the [Buffer](http://nodejs.org/docs/latest/api/buffer.html) documentation for how these work.
0 commit comments