• Preparing search index...
  • The search index is not available
Vinyl
  • Vinyl
  • @amzn/vinyl-util
  • bufferToUtf16

Function bufferToUtf16

  • bufferToUtf16(buffer): string
  • Converts a 16-bit buffer of any length to a utf-16 string.

    Parameters

    • buffer: ArrayBufferLike | ArrayLike<number>

      An iterable of double-byte code points.

    Returns string

    Returns a UTF-16 string.

    See

    https://developer.chrome.com/blog/how-to-convert-arraybuffer-to-and-from-string

    • Defined in util/buffer/buffer.ts:69

Settings

Member Visibility
Vinyl
  • Loading...

Generated using TypeDoc