Gambas Documentation - /comp/gb/byte[]

# Byte[] (gb)

This class implements a dynamic array of Byte values.

This class inherits Array.
This class is
Create an array of Byte values.
creatable
.
This class acts like a
Returns a value stored in the array at the specified Index.
read
/
Modifies the value stored in the array at the specified index.
write
array.
This class is
Enumerates each element stored in the array.
enumerable
with the FOR EACH keyword.

Static methods
Create a byte array from the contents of a string. FromString

Properties | Methods
--- | ---

Returns a virtual class representing the bounds of each array dimension.
Bounds
Returns the number of elements in the array.
Count
Returns a pointer to the array data.
Data
Returns the number of dimensions of an array.
Dim
Returns the number of elements in the array.
Length
Returns the greatest index of the array.
Max
Returns the type of data that can be put into the array.
Type

Inserts an element into the array at the position specified by Index.
Add
Clears the array.
Clear
Returns a deep copy of the array.
Copy
A synonymous for Extract.
Delete
Returns TRUE if the specified value exists in the array.
Exist
Removes one or more elements from the array, and returns them.
Extract
Fills the array with the specified value.
Fill
Returns the position of the first occurrence of Value in the array.
Find
Insert an array into the current one at the position specified by Pos.
Insert
Removes the last element of the array and returns it.
Pop
Adds an element at the end of the array.
Push
Fills an array by reading the data directly from a stream.
Read
Removes one or more elements from the array.
Remove
Resizes the array.
Resize
Reverse the order of array elements, and return the array.
Reverse
Sorts the array.
Sort
Return the array contents as a string.
ToString
Write array contents to a stream.
Write