"blob" is the common abbreviation for "Binary Large Object", which means that the object contains a large amount of binary data. Some languages have native blob types, but C ++ does not. However, creating a blob is quite simple - you just create an array of bytes. In your example, this is done by creating an array of char
s. However, this can be confusing, since an array of characters has special meaning in C ++ - it is also a string. However, if it is used as a blob, it can store any data (in this case strlen
will not work).
source share