19 #ifndef INCLUDE_SF_DATAPTR_HPP 20 #define INCLUDE_SF_DATAPTR_HPP 24 #include <RCF/Export.hpp> 26 #include <SF/PortableTypes.hpp> 34 class RCF_EXPORT DataPtr
41 DataPtr(
const T *sz, UInt32 length);
42 DataPtr(
const DataPtr &rhs);
43 DataPtr &operator=(
const DataPtr &rhs);
46 void assign(
const T *sz, UInt32 length);
47 void assign(
const T *sz);
48 void assign(
const std::string &s);
51 UInt32 allocate(UInt32 length);
53 UInt32 length()
const;
55 std::string cpp_str()
const;
60 UInt32 allocatedLength_;
62 void (*pfn_deleter_)(T *);
64 UInt32 length(
const T *sz);
69 #endif // ! INCLUDE_SF_DATAPTR_HPP Definition: ByteBuffer.hpp:189