SafeBuffer::Initialize Method

.NET Framework (current version)
 

Specifies the size of the memory buffer to allocate. You must call this method before you use the SafeBuffer instance.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

NameDescription
System_CAPS_pubmethodInitialize(UInt32, UInt32)

Specifies the allocation size of the memory buffer by using the specified number of elements and element size. You must call this method before you use the SafeBuffer instance.

System_CAPS_pubmethodInitialize(UInt64)

Defines the allocation size of the memory region in bytes. You must call this method before you use the SafeBuffer instance.

System_CAPS_pubmethodInitialize<T>(UInt32)

Defines the allocation size of the memory region by specifying the number of value types. You must call this method before you use the SafeBuffer instance.

Return to top
Show: