Object-ByteArray
From Spheriki
A Sphere ByteArray object holds a sequence of bytes, or numbers that range between zero (0) and two hundred and fifty five (255).
Contents |
[edit]
Initializers
[edit]
Methods
None.
[edit]
Members
- length is the length of the ByteArray. Elements of the ByteArray will range from zero (0) to
length - 1.
[edit]
Examples
See examples for CreateByteArrayFromString().
[edit]
Notes
- The Sphere ByteArray object is most commonly used as a bridge between the script and either a RawFile or a network Socket.
- Although ByteArrays are commonly used with strings, each byte ranges between 0 and 255 (inclusive). This allows the creation of custom byte arrays to represent files with non-text content and support for files of any format.
- Each entry of a ByteArray is restricted to the range 0 to 255 (inclusive). Operations with larger numbers will result in an overflow.
[edit]

