Changeset 30564 in vbox for trunk/include/VBox/com
- Timestamp:
- Jul 1, 2010 4:54:16 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 63277
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/array.h
r29931 r30564 950 950 } 951 951 952 952 953 /** 953 954 * Transfers the ownership of this array's data to the specified location … … 1003 1004 return *this; 1004 1005 } 1006 1007 inline void initFrom(com::SafeArray<T> & aRef); 1005 1008 1006 1009 // Public methods for internal purposes only. … … 1202 1205 Data m; 1203 1206 }; 1207 1208 /* Few fast specializations for primitive array types */ 1209 template<> 1210 inline void com::SafeArray<BYTE>::initFrom(com::SafeArray<BYTE> & aRef) 1211 { 1212 size_t sSize = aRef.size(); 1213 resize(sSize); 1214 ::memcpy(raw(), aRef.raw(), sSize); 1215 } 1204 1216 1205 1217 ////////////////////////////////////////////////////////////////////////////////
Note:
See TracChangeset
for help on using the changeset viewer.