What is a drop?

I came across several articles linking to C ++ blob. What is it?

I saw code that uses it like this:

char blob[100]; element = lst->putBlob(blob, strlen(blob)); 

The code here is not very important, I just want to know what blob is.

+6
source share
2 answers

"Blob" means Binary Large Object .

+12
source

"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).

+9
source

Source: https://habr.com/ru/post/899484/


All Articles