C# Class Lennox.NvEncSharp.CuDeviceMemory

Datei anzeigen Open project: jlennox/NvEncSharp

Public Properties

Property Type Description
Empty CuDeviceMemory
Handle IntPtr

Public Methods

Method Description
Allocate ( IntPtr bytesize ) : CuDeviceMemory
Allocate ( int bytesize ) : CuDeviceMemory
AllocatePitch ( IntPtr &pitch, IntPtr widthInBytes, IntPtr height, uint elementSizeBytes ) : CuDeviceMemory
CopyToHost ( int size ) : byte[]
CopyToHost ( byte* hostDestination, int size ) : void
Dispose ( ) : void

Private Methods

Method Description
CuDeviceMemory ( CuDevicePtr devicePtr ) : System

Method Details

Allocate() public static method

public static Allocate ( IntPtr bytesize ) : CuDeviceMemory
bytesize IntPtr
return CuDeviceMemory

Allocate() public static method

public static Allocate ( int bytesize ) : CuDeviceMemory
bytesize int
return CuDeviceMemory

AllocatePitch() public static method

public static AllocatePitch ( IntPtr &pitch, IntPtr widthInBytes, IntPtr height, uint elementSizeBytes ) : CuDeviceMemory
pitch IntPtr
widthInBytes IntPtr
height IntPtr
elementSizeBytes uint
return CuDeviceMemory

CopyToHost() public method

public CopyToHost ( int size ) : byte[]
size int
return byte[]

CopyToHost() public method

public CopyToHost ( byte* hostDestination, int size ) : void
hostDestination byte*
size int
return void

Dispose() public method

public Dispose ( ) : void
return void

Property Details

Empty public_oe static_oe property

public static CuDeviceMemory,Lennox.NvEncSharp Empty
return CuDeviceMemory

Handle public_oe property

public IntPtr Handle
return IntPtr