Table of Contents

Class Allocator

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

Constructors

Allocator(AllocatorOwnedHandle)

public Allocator(AllocatorOwnedHandle handle)

Parameters

handle AllocatorOwnedHandle

Properties

Handle

public AllocatorOwnedHandle Handle { get; }

Property Value

AllocatorOwnedHandle

Methods

Equals(Allocator?)

public bool Equals(Allocator? other)

Parameters

other Allocator

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()

public void Free()

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

New(string, uint)

public static Allocator New(string name, uint nPreallocs)

Parameters

name string
nPreallocs uint

Returns

Allocator