Skip to main content
Version: v3+

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

TypeDescription
ArrayBufferThe ArrayBuffer to be converted

Result

TypeDescription
stringThe converted string

Example

import { bufferToString } from '@zos/utils'

const str = bufferToString(buffer)