Create a BLOB is a very simple operation:
A BLOB is a very flexible object beacuse allow to work with data expressed into different formats. To distinguish from a string of bytes and an exadecimal string of bytes we must use the exadecimal marker located as static property on the BLOB class.
A BLOB object can be also reported to a primitive form as an array or string of bytes in the same easy way:
With a BLOB object we can also add, change, remove, inject single bits or long sequence of bytes with a few lines of code:
A BLOB object saves the current position after the execution of every operation. Read, write or insert some data moves the current position forward. We can always reposition the current index to a custom bit-offset using the seek and rseek methods:
In general it also possible execute an operation over the BLOB without change the current position:
Read the data of a BLOB object can be accomplished also with an iterator or exporting the data into an array or into a string: