VirtualBox

Changeset 47848 in vbox for trunk/include/VBox/com


Ignore:
Timestamp:
Aug 19, 2013 4:34:02 PM (11 years ago)
Author:
vboxsync
Message:

Main: API event for multitouch input.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/array.h

    r45125 r47848  
    12411241}
    12421242
     1243
     1244template<>
     1245inline 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}
     1251template<>
     1252inline void com::SafeArray<SHORT>::initFrom(const SHORT* aPtr, size_t aSize)
     1253{
     1254    resize(aSize);
     1255    ::memcpy(raw(), aPtr, aSize * sizeof(SHORT));
     1256}
     1257
     1258template<>
     1259inline 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}
     1265template<>
     1266inline void com::SafeArray<USHORT>::initFrom(const USHORT* aPtr, size_t aSize)
     1267{
     1268    resize(aSize);
     1269    ::memcpy(raw(), aPtr, aSize * sizeof(USHORT));
     1270}
    12431271
    12441272template<>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette