Interface ISyncMemoryBuffer
- Namespace
- DotCompute.Abstractions
- Assembly
- DotCompute.Abstractions.dll
Extended memory buffer interface with synchronous operations and additional capabilities.
public interface ISyncMemoryBuffer : IUnifiedMemoryBuffer, IAsyncDisposable, IDisposable
- Inherited Members
- Extension Methods
Properties
IsDisposed
Gets whether the buffer has been disposed.
bool IsDisposed { get; }
Property Value
Methods
AsSpan<T>()
Gets a span over the buffer memory, if available.
Span<T> AsSpan<T>() where T : unmanaged
Returns
- Span<T>
Type Parameters
T
GetHostPointer()
Gets a pointer to the host memory, if available.
void* GetHostPointer()
Returns
- void*
Slice(long, long)
Creates a slice of this buffer.
ISyncMemoryBuffer Slice(long offset, long length)