Changeset 47848 in vbox for trunk/include/VBox/com
- Timestamp:
- Aug 19, 2013 4:34:02 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/array.h
r45125 r47848 1241 1241 } 1242 1242 1243 1244 template<> 1245 inline void com::SafeArray<SHORT>::initFrom(const com::SafeArray<SHORT> & aRef) 1246 { 1247 size_t sSize = aRef.size(); 1248 resize(sSize); 1249 ::memcpy(raw(), aRef.raw(), sSize * sizeof(SHORT)); 1250 } 1251 template<> 1252 inline void com::SafeArray<SHORT>::initFrom(const SHORT* aPtr, size_t aSize) 1253 { 1254 resize(aSize); 1255 ::memcpy(raw(), aPtr, aSize * sizeof(SHORT)); 1256 } 1257 1258 template<> 1259 inline void com::SafeArray<USHORT>::initFrom(const com::SafeArray<USHORT> & aRef) 1260 { 1261 size_t sSize = aRef.size(); 1262 resize(sSize); 1263 ::memcpy(raw(), aRef.raw(), sSize * sizeof(USHORT)); 1264 } 1265 template<> 1266 inline void com::SafeArray<USHORT>::initFrom(const USHORT* aPtr, size_t aSize) 1267 { 1268 resize(aSize); 1269 ::memcpy(raw(), aPtr, aSize * sizeof(USHORT)); 1270 } 1243 1271 1244 1272 template<>
Note:
See TracChangeset
for help on using the changeset viewer.