The MemoryArray<(Of <(T>)>) type exposes the following members.

Constructors

  NameDescription
MemoryArray<(Of <(T>)>)Overloaded.

Methods

  NameDescription
Clone
Creates a shallow copy of the MemoryArray<(Of <(T>)>).
CopyFrom
Copies a range of elements from the array starting at the specified sourceIndex and pastes them to the unmanaged array starting at the specified destinationIndex. The length and the indexes are specified as 32-bit integers.
CopyMemory
Copies a block of memory from one location to another.
CopyToOverloaded.
DisposeOverloaded.
EnsureNotDisposed
Throws an ObjectDisposedException if this instance is disposed.
EqualsOverloaded.
Finalize
Frees the allocated GCHandle.
(Overrides Object..::.Finalize()()().)
GetEnumerator
Retrieves an object that can iterate through the individual elements in this MemoryArray<(Of <(T>)>).
GetHashCode
Serves as a hash function for a particular type.
(Overrides Object..::.GetHashCode()()().)
GetValue
Gets the value at the specified position.
GetValues
Gets the values at the specified position and length.
SetValue
Sets a value to the element at the specified position.
SetValues
Sets the values at the specified position.
ToByteArray
Returns the represented block of memory as an array of Byte.

Operators

  NameDescription
Equality
Tests whether two specified MemoryArray<(Of <(T>)>) structures are equivalent.
Inequality
Tests whether two specified MemoryArray<(Of <(T>)>) structures are different.

Fields

  NameDescription
baseAddress
Baseaddress of the wrapped memory.
buffer
Array of T containing a single element. The array is used as a workaround, because there are no pointer for generic types.
handle
Handle for pinning buffer.
isFourBit
Indicates whther the wrapped memory is handles like 4-bit blocks.
isOneBit
Indicates whether the wrapped memory is handled like a bitfield.
length
Number of elements being wrapped.
ptr
Pointer to the element of buffer.
size
Size, in bytes, of each element.
syncRoot
An object that can be used to synchronize access to the MemoryArray<(Of <(T>)>).

Properties

  NameDescription
BaseAddress
Gets the base address of the represented memory block.
Count
Gets a 32-bit integer that represents the total number of elements in the MemoryArray<(Of <(T>)>).
Data
Gets or sets the values of the unmanaged array.
IsSynchronized
Gets a value indicating whether access to the MemoryArray<(Of <(T>)>) is synchronized (thread safe).
Item
Gets or sets the value at the specified position in the array.
Length
Gets the length of the unmanaged array.
SyncRoot
Gets an object that can be used to synchronize access to the MemoryArray<(Of <(T>)>).

See Also