Learn how to evaluate and integrate the VNC SDK

We're here if you need help.

DataBuffer

vncsdk.DataBuffer

Buffer containing data managed by the SDK.

Constructor Summary

Modifier and Type Method and Description

DataBuffer(data)

Creates a data buffer containing a copy of the given data.

Method Summary

Modifier and Type Method and Description

destroy()

Destroys the data buffer.

Uint8Array or null

getData()

Gets the data contained in the buffer.

Constructor

class vncsdk.DataBuffer(data)

Creates a data buffer containing a copy of the given data.

For more information, see vnc_DataBuffer_create().

Arguments:
  • data (Uint8Array or Array<number>) –
Throws:

vncsdk.VncException on error

Methods

DataBuffer.destroy()

Destroys the data buffer.

For more information, see vnc_DataBuffer_destroy().

DataBuffer.getData()

Gets the data contained in the buffer.

For more information, see vnc_DataBuffer_getData().

Return type:Uint8Array or null
×