bufferToString
Start from API_LEVEL
4.0. Please refer to API_LEVEL.
Convert ArrayBuffer type to string type.
Type
function bufferToString(buffer: InputBuffer): Result
Parameters
InputBuffer
| Type | Description |
|---|---|
ArrayBuffer | The ArrayBuffer to be converted |
Result
| Type | Description |
|---|---|
string | The converted string |
Example
import { bufferToString } from '@zos/utils'
const str = bufferToString(buffer)