Table of Contents

Class MemoryBuffer

Namespace
Ubiquity.NET.Llvm
Assembly
Ubiquity.NET.Llvm.dll

LLVM MemoryBuffer

public sealed class MemoryBuffer : IDisposable
Inheritance
MemoryBuffer
Implements
Inherited Members

Constructors

MemoryBuffer(byte*, nuint, LazyEncodedString, bool)

Initializes a new instance of the MemoryBuffer class to wrap an existing memory region

MemoryBuffer(byte[], LazyEncodedString?)

Initializes a new instance of the MemoryBuffer class from a byte array

MemoryBuffer(string)

Initializes a new instance of the MemoryBuffer class from a file

Properties

IsDisposed

Gets a value indicating whether this instance is disposed

Size

Gets the size of the buffer

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Slice(int, int)

Create a ReadOnlySpan<T> for a slice of the buffer

ToArray()

Gets an array of bytes from the buffer

Operators

implicit operator ReadOnlySpan<byte>(MemoryBuffer)

Implicit convert to a ReadOnlySpan<T>