• Version 4.4.3
Show / Hide Table of Contents

Interface MemoryPointer.IMemoryPointer

Represents a pointer to a contiguous region of memory.

Inherited Members
IDisposable.Dispose()
Namespace: OnixS.SimpleBinaryEncoding
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public interface MemoryPointer.IMemoryPointer : IDisposable

Properties

IsEmpty

Declaration
bool IsEmpty { get; }
Property Value
Type Description
bool

true when the current span is empty; otherwise false.

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 start to the end of the instance.

In this article
Back to top Copyright © Onix Solutions.
Generated by DocFX