VirtualBox

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


Ignore:
Timestamp:
Aug 17, 2010 10:18:05 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64870
Message:

Main: PNG screenshoting API

File:
1 edited

Legend:

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

    r30681 r31718  
    10101010
    10111011    inline void initFrom(const com::SafeArray<T> & aRef);
     1012    inline void initFrom(const T* aPtr, size_t aSize);
    10121013
    10131014    // Public methods for internal purposes only.
     
    12181219    ::memcpy(raw(), aRef.raw(), sSize);
    12191220}
     1221template<>
     1222inline void com::SafeArray<BYTE>::initFrom(const BYTE* aPtr, size_t aSize)
     1223{
     1224    resize(aSize);
     1225    ::memcpy(raw(), aPtr, aSize);
     1226}
     1227
    12201228
    12211229////////////////////////////////////////////////////////////////////////////////
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