VirtualBox

Changeset 79731 in vbox for trunk/include


Ignore:
Timestamp:
Jul 12, 2019 12:37:06 PM (6 years ago)
Author:
vboxsync
Message:

VBox/com/Guid.h: Added a pure RTUuidToStr wrapper, i.e. takes a C string buffer.

File:
1 edited

Legend:

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

    r76585 r79731  
    291291    }
    292292
     293    /**
     294     * Convert the GUID to a C string.
     295     *
     296     * @returns See RTUuidToStr.
     297     * @param   pszUuid The output buffer
     298     * @param   cbUuid  The size of the output buffer.  Should be at least
     299     *                  RTUUID_STR_LENGTH in length.
     300     */
     301    int toString(char *pszUuid, size_t cbUuid) const
     302    {
     303        return ::RTUuidToStr(mGuidState != GUID_INVALID ? &mUuid : &Empty.mUuid, pszUuid, cbUuid);
     304    }
     305
    293306    bool isValid() const
    294307    {
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