2020-03-29 13:43:52 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [encode](./js-utils.encode.md)
|
|
|
|
|
|
|
|
## encode() function
|
|
|
|
|
2020-03-31 13:49:18 +00:00
|
|
|
Concatenate then encode a list of buffers.
|
|
|
|
|
2020-03-29 13:43:52 +00:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
2020-09-05 23:43:51 +00:00
|
|
|
export declare function encode(chunks: Array<Buffer>, encoding: AllowedBufferEncoding): string;
|
2020-03-29 13:43:52 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2020-06-29 23:23:16 +00:00
|
|
|
| chunks | Array<Buffer> | |
|
2020-09-05 23:43:51 +00:00
|
|
|
| encoding | AllowedBufferEncoding | |
|
2020-03-29 13:43:52 +00:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
2020-06-29 23:23:16 +00:00
|
|
|
string
|
2020-03-29 13:43:52 +00:00
|
|
|
|