ByteArray¶
Description¶
The ByteArray object is used to store and transport binary data and convert it to/from various representations easily. Whenever one of the data, arrayBuffer or string property is changed the other properties are updated automatically.
This object was introduced in InCore 2.0.
› Inherits: | Object |
---|---|
› Inherited by: | Resource, UdpDatagram |
Properties¶
arrayBuffer¶
This property holds the binary data as a JS ArrayBuffer
object.
› Type: | ArrayBuffer |
---|---|
› Signal: | arrayBufferChanged() |
› Attributes: | Writable |
base64¶
This property holds the base64 encoded representation of the binary data, e.g. SW5Db3JlIGlzIGdyZWF0IQ==
.
› Type: | String |
---|---|
› Signal: | base64Changed() |
› Attributes: | Writable |
data¶
This property holds the individual bytes as a JS value list, e.g. [0xaf, 0xfe, 0xd0, 0x0f]
.
› Type: | Variant |
---|---|
› Signal: | dataChanged() |
› Attributes: | Writable |
hex¶
This property holds the hexadecimal encoded representation of the binary data, e.g. badc0ded
.
› Type: | String |
---|---|
› Signal: | hexChanged() |
› Attributes: | Writable |
string¶
This property holds the binary data encoded as an UTF-8 string.
› Type: | String |
---|---|
› Signal: | stringChanged() |
› Attributes: | Writable |