18 #ifndef INCLUDE_SF_DATAPTR_HPP 19 #define INCLUDE_SF_DATAPTR_HPP 23 #include <RCF/Export.hpp> 25 #include <SF/PortableTypes.hpp> 33 class RCF_EXPORT DataPtr
40 DataPtr(
const T *sz, UInt32 length);
41 DataPtr(
const DataPtr &rhs);
42 DataPtr &operator=(
const DataPtr &rhs);
45 void assign(
const T *sz, UInt32 length);
46 void assign(
const T *sz);
47 void assign(
const std::string &s);
50 UInt32 allocate(UInt32 length);
52 UInt32 length()
const;
54 std::string cpp_str()
const;
59 UInt32 allocatedLength_;
61 void (*pfn_deleter_)(T *);
63 UInt32 length(
const T *sz);
68 #endif // ! INCLUDE_SF_DATAPTR_HPP Definition: ByteBuffer.hpp:188