code: @Deprecated
      public static int cuGLMapBufferObjectAsync( CUdeviceptr dptr, long size[],  int buffer, CUstream hStream)
      {
          return checkResult((cuGLMapBufferObjectAsyncNative(dptr, size, buffer, hStream)));
      }
docs: Maps an OpenGL buffer object.
  
  <pre>
  CUresult cuGLMapBufferObjectAsync (
  CUdeviceptr* dptr,
  size_t* size,
  GLuint buffer,
  CUstream hStream )
  </pre>
  <div>
  <p>Maps an OpenGL buffer object.
  Deprecated<span>This function is
  deprecated as of Cuda 3.0.</span>Maps the buffer object specified by
  <tt>buffer</tt> into the address space of the current CUDA context
  and returns in <tt>*dptr</tt> and <tt>*size</tt> the base pointer
  and size of the resulting mapping.
  </p>
  <p>There must be a valid OpenGL context
  bound to the current thread when this function is called. This must be
  the same context,
  or a member of the same shareGroup,
  as the context that was bound when the buffer was registered.
  </p>
  <p>Stream <tt>hStream</tt> in the
  current CUDA context is synchronized with the current GL context.
  </p>
  <div>
  <span>Note:</span>
  <p>Note that
  this function may also return error codes from previous, asynchronous
  launches.
  </p>
  </div>
  </p>
  </div>
  
  @param dptr Returned mapped base pointer
  @param size Returned size of mapping
  @param buffer The name of the buffer object to map
  @param hStream Stream to synchronize
  
  @return CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED,
  CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE,
  CUDA_ERROR_MAP_FAILED
  
  @see JCudaDriver#cuGraphicsMapResources
  
  @deprecated Deprecated as of CUDA 3.0