Module BinArray
The class that's used to create and manage BinArrays.
Info:
- Copyright: Debaru Kft. 2017
- Release:
- License: GNU
- Author: Debaru Kft
Functions
| BinArray (initial_size) | Creates a BinArray instance. |
| get (index) | Gets an element of the BinArray. |
| set (index, value) | Sets an element of the BinArray. |
| to_string () | Returns the elements of the BinArray as a string. |
| dump () | Prints the contents of the BinArray to the stdout in hexa form. |
| from_string (data) | Creates a BinArray based on a string. |
Fields
| size | Represents the size of the BinArray. |
Functions
- BinArray (initial_size)
-
Creates a BinArray instance.
Parameters:
- initial_size int
- get (index)
-
Gets an element of the BinArray.
Parameters:
- index int
- set (index, value)
-
Sets an element of the BinArray.
Parameters:
- to_string ()
-
Returns the elements of the BinArray as a string.
Returns:
- dump ()
- Prints the contents of the BinArray to the stdout in hexa form.
- from_string (data)
-
Creates a BinArray based on a string.
Parameters:
- data string