blobref.h

来自「下载来的一个看图软件的源代码」· C头文件 代码 · 共 47 行

H
47
字号
// This may look like C code, but it is really -*- C++ -*-//// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002//// Blob reference class//// This is an internal implementation class that should not be// accessed by users.//#if !defined(Magick_Blob_header)#define Magick_Blob_header#include "Magick++/Include.h"#include "Magick++/Thread.h"#include "Magick++/Blob.h"namespace Magick{  class BlobRef {  public:    // There are no public methods in this class    // Construct with data, making private copy of data    BlobRef ( const void* data_, size_t length_ );    // Destructor (actually destroys data)    ~BlobRef ( void );  private:    // Copy constructor and assignment are not supported    BlobRef (const BlobRef&);    BlobRef& operator= (const BlobRef&);  public:    void *          _data;      // Blob data    size_t          _length;    // Blob length    Blob::Allocator _allocator; // Memory allocation system in use    int             _refCount;  // Reference count    MutexLock       _mutexLock; // Mutex lock  };} // namespace Magick#endif // Magick_Blob_header

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?