Table of Contents

Class MemChunk

Namespace
GLib
Assembly
GLib-2.0.dll
public sealed class MemChunk
Inheritance
MemChunk
Inherited Members

Constructors

MemChunk(MemChunkOwnedHandle)

public MemChunk(MemChunkOwnedHandle handle)

Parameters

handle MemChunkOwnedHandle

Properties

Handle

public MemChunkOwnedHandle Handle { get; }

Property Value

MemChunkOwnedHandle

Methods

Alloc()

public nint Alloc()

Returns

nint

Alloc0()

public nint Alloc0()

Returns

nint

Clean()

public void Clean()

Destroy()

public void Destroy()

Equals(MemChunk?)

public bool Equals(MemChunk? other)

Parameters

other MemChunk

Returns

bool

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Free(nint)

public void Free(nint mem)

Parameters

mem nint

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Info()

public static void Info()

New(string, int, nuint, int)

public static MemChunk New(string name, int atomSize, nuint areaSize, int type)

Parameters

name string
atomSize int
areaSize nuint
type int

Returns

MemChunk

Print()

public void Print()

Reset()

public void Reset()