VirtualBox

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


Ignore:
Timestamp:
Jul 1, 2010 4:54:16 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63277
Message:

Main: safearray event attributes work

File:
1 edited

Legend:

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

    r29931 r30564  
    950950    }
    951951
     952
    952953    /**
    953954     * Transfers the ownership of this array's data to the specified location
     
    10031004        return *this;
    10041005    }
     1006
     1007    inline void initFrom(com::SafeArray<T> & aRef);
    10051008
    10061009    // Public methods for internal purposes only.
     
    12021205    Data m;
    12031206};
     1207
     1208/* Few fast specializations for primitive array types */
     1209template<>
     1210inline 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}
    12041216
    12051217////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.

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