• <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>

  • DriveWorks SDK Reference
    5.20.37 Release
    For Test and Development only

    All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    Memory.h File Reference

    Go to the source code of this file.

    Functions

    DW_API_PUBLIC void * memcpy_opt (void *__restrict const destination, const void *__restrict const source, size_t const num)
     Memory copy of virtual process memory. More...
     

    Function Documentation

    ◆ memcpy_opt()

    DW_API_PUBLIC void * memcpy_opt ( void *__restrict const  destination,
    const void *__restrict const  source,
    size_t const  num 
    )

    Memory copy of virtual process memory.

    This subroutine shall call std::memcpy() for x86_64, and custom optimized implementation for aarch64. As in standard memcpy call destination and source memory blocks should not overlap.

    NOTE: This function shall be used only if the source address belongs to a CUDA Pinned Host memory region. If either destination or source is an invalid or null pointer, the behavior is undefined, even if count is zero. Please check std::memcpy() documentation for details.

    Note
    The method has been deprecated and replaced by standard std::memcpy() implementation due to safety concerns.
    Parameters
    [out]destinationpointer to destination memory into which num bytes will be copied from source
    [in]sourcepointer to source memory which will be copied destination
    [in]numnumber of bytes to copy
    Returns
    pointer to destination
    API Group
    • Init: Yes
    • Runtime: Yes
    • De-Init: Yes
    人人超碰97caoporen国产