10 #include <openssl/md5.h>
28 snprintf(buffer, 1024-1,
"%s", fname);
30 return basename(buffer);
39 if (fID < 0)
return -1;
42 if(fstat(fID, &statbuf) < 0)
return -1;
45 void *file_buffer = mmap(0, statbuf.st_size, PROT_READ, MAP_SHARED, fID, 0);
46 MD5((
unsigned char*) file_buffer, statbuf.st_size, output);
57 TGeoShape *shape,
int color):
58 mTransformation(transformation), mInitialized(
false), mMD5BufferSize(0), mMD5Signature(0),
65 unsigned char md5[MD5_DIGEST_LENGTH];
86 mShape = shape ?
dynamic_cast<TGeoShape*
>(shape->Clone()) : 0;
99 unsigned char md5[MD5_DIGEST_LENGTH];
125 if (!
mShape)
return false;
134 memcpy(local, xx,
sizeof(local));
137 return mShape->Contains(local);