picrin/include/picrin/blob.h

28 lines
405 B
C

/**
* See Copyright Notice in picrin.h
*/
#ifndef BLOB_H__
#define BLOB_H__
#if defined(__cplusplus)
extern "C" {
#endif
struct pic_blob {
PIC_OBJECT_HEADER
char *data;
int len;
};
#define pic_blob_p(v) (pic_type(v) == PIC_TT_BLOB)
#define pic_blob_ptr(v) ((struct pic_blob *)pic_ptr(v))
struct pic_blob *pic_blob_new(pic_state *, char *, int len);
#if defined(__cplusplus)
}
#endif
#endif