Interface MemoryPointer.IMemoryPointer
Represents a pointer to a contiguous region of memory.
Inherited Members
Namespace: OnixS.SimpleBinaryEncoding
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public interface MemoryPointer.IMemoryPointer : IDisposable
Properties
IsEmpty
Declaration
bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
bool |
|
Length
Declaration
int Length { get; }
Property Value
Type | Description |
---|---|
int | The length of the memory region. |
Span
Declaration
Span<byte> Span { get; }
Property Value
Type | Description |
---|---|
Span<byte> | A span created from the current object. |
Methods
Slice(int)
Forms a slice out of the current memory that begins at a specified index.
Declaration
MemoryPointer.UnmanagedPointer Slice(int start)
Parameters
Type | Name | Description |
---|---|---|
int | start | The index at which to begin the slice. |
Returns
Type | Description |
---|---|
MemoryPointer.UnmanagedPointer | An object that contains all elements of the current instance from |