Table of Contents

Class Functions

Namespace
GLib
Assembly
GLib-2.0.dll
public static class Functions
Inheritance
Functions
Inherited Members

Methods

Abort()

[Version("2.50")]
public static void Abort()

Access(string, int)

[Version("2.8")]
public static int Access(string filename, int mode)

Parameters

filename string
mode int

Returns

int

AlignedAlloc(nuint, nuint, nuint)

[Version("2.72")]
public static nint AlignedAlloc(nuint nBlocks, nuint nBlockBytes, nuint alignment)

Parameters

nBlocks nuint
nBlockBytes nuint
alignment nuint

Returns

nint

AlignedAlloc0(nuint, nuint, nuint)

[Version("2.72")]
public static nint AlignedAlloc0(nuint nBlocks, nuint nBlockBytes, nuint alignment)

Parameters

nBlocks nuint
nBlockBytes nuint
alignment nuint

Returns

nint

AlignedFree(nint)

[Version("2.72")]
public static void AlignedFree(nint mem)

Parameters

mem nint

AlignedFreeSized(nint, nuint, nuint)

[Version("2.76")]
public static void AlignedFreeSized(nint mem, nuint alignment, nuint size)

Parameters

mem nint
alignment nuint
size nuint

AsciiDigitValue(sbyte)

public static int AsciiDigitValue(sbyte c)

Parameters

c sbyte

Returns

int

AsciiDtostr(string, int, double)

public static string AsciiDtostr(string buffer, int bufLen, double d)

Parameters

buffer string
bufLen int
d double

Returns

string

AsciiFormatd(string, int, string, double)

public static string AsciiFormatd(string buffer, int bufLen, string format, double d)

Parameters

buffer string
bufLen int
format string
d double

Returns

string

AsciiStrcasecmp(string, string)

public static int AsciiStrcasecmp(string s1, string s2)

Parameters

s1 string
s2 string

Returns

int

AsciiStrdown(string, nint)

public static string AsciiStrdown(string str, nint len)

Parameters

str string
len nint

Returns

string

AsciiStringToSigned(string, uint, long, long, out long)

[Version("2.54")]
public static bool AsciiStringToSigned(string str, uint @base, long min, long max, out long outNum)

Parameters

str string
base uint
min long
max long
outNum long

Returns

bool

AsciiStringToUnsigned(string, uint, ulong, ulong, out ulong)

[Version("2.54")]
public static bool AsciiStringToUnsigned(string str, uint @base, ulong min, ulong max, out ulong outNum)

Parameters

str string
base uint
min ulong
max ulong
outNum ulong

Returns

bool

AsciiStrncasecmp(string, string, nuint)

public static int AsciiStrncasecmp(string s1, string s2, nuint n)

Parameters

s1 string
s2 string
n nuint

Returns

int

AsciiStrtod(string, out string)

public static double AsciiStrtod(string nptr, out string endptr)

Parameters

nptr string
endptr string

Returns

double

AsciiStrtoll(string, out string, uint)

[Version("2.12")]
public static long AsciiStrtoll(string nptr, out string endptr, uint @base)

Parameters

nptr string
endptr string
base uint

Returns

long

AsciiStrtoull(string, out string, uint)

[Version("2.2")]
public static ulong AsciiStrtoull(string nptr, out string endptr, uint @base)

Parameters

nptr string
endptr string
base uint

Returns

ulong

AsciiStrup(string, nint)

public static string AsciiStrup(string str, nint len)

Parameters

str string
len nint

Returns

string

AsciiTolower(sbyte)

public static sbyte AsciiTolower(sbyte c)

Parameters

c sbyte

Returns

sbyte

AsciiToupper(sbyte)

public static sbyte AsciiToupper(sbyte c)

Parameters

c sbyte

Returns

sbyte

AsciiXdigitValue(sbyte)

public static int AsciiXdigitValue(sbyte c)

Parameters

c sbyte

Returns

int

AssertWarning(string, string, int, string, string)

public static void AssertWarning(string logDomain, string file, int line, string prettyFunction, string expression)

Parameters

logDomain string
file string
line int
prettyFunction string
expression string

AssertionMessage(string, string, int, string, string)

public static void AssertionMessage(string domain, string file, int line, string func, string message)

Parameters

domain string
file string
line int
func string
message string

AssertionMessageCmpint(string, string, int, string, string, ulong, string, ulong, sbyte)

public static void AssertionMessageCmpint(string domain, string file, int line, string func, string expr, ulong arg1, string cmp, ulong arg2, sbyte numtype)

Parameters

domain string
file string
line int
func string
expr string
arg1 ulong
cmp string
arg2 ulong
numtype sbyte

AssertionMessageCmpnum(string, string, int, string, string, double, string, double, sbyte)

public static void AssertionMessageCmpnum(string domain, string file, int line, string func, string expr, double arg1, string cmp, double arg2, sbyte numtype)

Parameters

domain string
file string
line int
func string
expr string
arg1 double
cmp string
arg2 double
numtype sbyte

AssertionMessageCmpstr(string, string, int, string, string, string, string, string)

public static void AssertionMessageCmpstr(string domain, string file, int line, string func, string expr, string arg1, string cmp, string arg2)

Parameters

domain string
file string
line int
func string
expr string
arg1 string
cmp string
arg2 string

AssertionMessageCmpstrv(string, string, int, string, string, string, string, nuint)

public static void AssertionMessageCmpstrv(string domain, string file, int line, string func, string expr, string arg1, string arg2, nuint firstWrongIdx)

Parameters

domain string
file string
line int
func string
expr string
arg1 string
arg2 string
firstWrongIdx nuint

AssertionMessageError(string, string, int, string, string, Error, Quark, int)

public static void AssertionMessageError(string domain, string file, int line, string func, string expr, Error error, Quark errorDomain, int errorCode)

Parameters

domain string
file string
line int
func string
expr string
error Error
errorDomain Quark
errorCode int

AssertionMessageExpr(string?, string, int, string, string?)

public static void AssertionMessageExpr(string? domain, string file, int line, string func, string? expr)

Parameters

domain string
file string
line int
func string
expr string

AsyncQueueNew()

public static AsyncQueue AsyncQueueNew()

Returns

AsyncQueue

AtomicIntAdd(ref int, int)

[Version("2.4")]
public static int AtomicIntAdd(ref int atomic, int val)

Parameters

atomic int
val int

Returns

int

AtomicIntAnd(ref uint, uint)

[Version("2.30")]
public static uint AtomicIntAnd(ref uint atomic, uint val)

Parameters

atomic uint
val uint

Returns

uint

AtomicIntCompareAndExchange(ref int, int, int)

[Version("2.4")]
public static bool AtomicIntCompareAndExchange(ref int atomic, int oldval, int newval)

Parameters

atomic int
oldval int
newval int

Returns

bool

AtomicIntCompareAndExchangeFull(ref int, int, int, out int)

[Version("2.74")]
public static bool AtomicIntCompareAndExchangeFull(ref int atomic, int oldval, int newval, out int preval)

Parameters

atomic int
oldval int
newval int
preval int

Returns

bool

AtomicIntDecAndTest(ref int)

[Version("2.4")]
public static bool AtomicIntDecAndTest(ref int atomic)

Parameters

atomic int

Returns

bool

AtomicIntExchange(ref int, int)

[Version("2.74")]
public static int AtomicIntExchange(ref int atomic, int newval)

Parameters

atomic int
newval int

Returns

int

AtomicIntExchangeAndAdd(ref int, int)

[Version("2.4")]
public static int AtomicIntExchangeAndAdd(ref int atomic, int val)

Parameters

atomic int
val int

Returns

int

AtomicIntGet(ref int)

[Version("2.4")]
public static int AtomicIntGet(ref int atomic)

Parameters

atomic int

Returns

int

AtomicIntInc(ref int)

[Version("2.4")]
public static void AtomicIntInc(ref int atomic)

Parameters

atomic int

AtomicIntOr(ref uint, uint)

[Version("2.30")]
public static uint AtomicIntOr(ref uint atomic, uint val)

Parameters

atomic uint
val uint

Returns

uint

AtomicIntSet(ref int, int)

[Version("2.4")]
public static void AtomicIntSet(ref int atomic, int newval)

Parameters

atomic int
newval int

AtomicIntXor(ref uint, uint)

[Version("2.30")]
public static uint AtomicIntXor(ref uint atomic, uint val)

Parameters

atomic uint
val uint

Returns

uint

AtomicPointerAnd(nint, nuint)

[Version("2.30")]
public static nuint AtomicPointerAnd(nint atomic, nuint val)

Parameters

atomic nint
val nuint

Returns

nuint

AtomicPointerCompareAndExchange(nint, nint, nint)

[Version("2.4")]
public static bool AtomicPointerCompareAndExchange(nint atomic, nint oldval, nint newval)

Parameters

atomic nint
oldval nint
newval nint

Returns

bool

AtomicPointerCompareAndExchangeFull(nint, nint, nint, out nint)

[Version("2.74")]
public static bool AtomicPointerCompareAndExchangeFull(nint atomic, nint oldval, nint newval, out nint preval)

Parameters

atomic nint
oldval nint
newval nint
preval nint

Returns

bool

AtomicPointerExchange(nint, nint)

[Version("2.74")]
public static nint AtomicPointerExchange(nint atomic, nint newval)

Parameters

atomic nint
newval nint

Returns

nint

AtomicPointerGet(nint)

[Version("2.4")]
public static nint AtomicPointerGet(nint atomic)

Parameters

atomic nint

Returns

nint

AtomicPointerOr(nint, nuint)

[Version("2.30")]
public static nuint AtomicPointerOr(nint atomic, nuint val)

Parameters

atomic nint
val nuint

Returns

nuint

AtomicPointerSet(nint, nint)

[Version("2.4")]
public static void AtomicPointerSet(nint atomic, nint newval)

Parameters

atomic nint
newval nint

AtomicPointerXor(nint, nuint)

[Version("2.30")]
public static nuint AtomicPointerXor(nint atomic, nuint val)

Parameters

atomic nint
val nuint

Returns

nuint

AtomicRcBoxAcquire(nint)

[Version("2.58")]
public static nint AtomicRcBoxAcquire(nint memBlock)

Parameters

memBlock nint

Returns

nint

AtomicRcBoxAlloc(nuint)

[Version("2.58")]
public static nint AtomicRcBoxAlloc(nuint blockSize)

Parameters

blockSize nuint

Returns

nint

AtomicRcBoxAlloc0(nuint)

[Version("2.58")]
public static nint AtomicRcBoxAlloc0(nuint blockSize)

Parameters

blockSize nuint

Returns

nint

AtomicRcBoxDup(nuint, nint)

[Version("2.58")]
public static nint AtomicRcBoxDup(nuint blockSize, nint memBlock)

Parameters

blockSize nuint
memBlock nint

Returns

nint

AtomicRcBoxGetSize(nint)

[Version("2.58")]
public static nuint AtomicRcBoxGetSize(nint memBlock)

Parameters

memBlock nint

Returns

nuint

AtomicRcBoxRelease(nint)

[Version("2.58")]
public static void AtomicRcBoxRelease(nint memBlock)

Parameters

memBlock nint

AtomicRefCountCompare(ref int, int)

[Version("2.58")]
public static bool AtomicRefCountCompare(ref int arc, int val)

Parameters

arc int
val int

Returns

bool

AtomicRefCountDec(ref int)

[Version("2.58")]
public static bool AtomicRefCountDec(ref int arc)

Parameters

arc int

Returns

bool

AtomicRefCountInc(ref int)

[Version("2.58")]
public static void AtomicRefCountInc(ref int arc)

Parameters

arc int

AtomicRefCountInit(ref int)

[Version("2.58")]
public static void AtomicRefCountInit(ref int arc)

Parameters

arc int

Base64Encode(Span<byte>)

[Version("2.12")]
public static string Base64Encode(Span<byte> data)

Parameters

data Span<byte>

Returns

string

Basename(string)

public static string Basename(string fileName)

Parameters

fileName string

Returns

string

BitLock(ref int, int)

[Version("2.24")]
public static void BitLock(ref int address, int lockBit)

Parameters

address int
lockBit int

BitNthLsf(ulong, int)

public static int BitNthLsf(ulong mask, int nthBit)

Parameters

mask ulong
nthBit int

Returns

int

BitNthMsf(ulong, int)

public static int BitNthMsf(ulong mask, int nthBit)

Parameters

mask ulong
nthBit int

Returns

int

BitStorage(ulong)

public static uint BitStorage(ulong number)

Parameters

number ulong

Returns

uint

BitTrylock(ref int, int)

[Version("2.24")]
public static bool BitTrylock(ref int address, int lockBit)

Parameters

address int
lockBit int

Returns

bool

BitUnlock(ref int, int)

[Version("2.24")]
public static void BitUnlock(ref int address, int lockBit)

Parameters

address int
lockBit int

BlowChunks()

public static void BlowChunks()

BookmarkFileErrorQuark()

public static Quark BookmarkFileErrorQuark()

Returns

Quark

BuildFilenameValist(string, nint)

[Version("2.56")]
public static string BuildFilenameValist(string firstElement, nint args)

Parameters

firstElement string
args nint

Returns

string

BuildFilenamev(string[])

[Version("2.8")]
public static string BuildFilenamev(string[] args)

Parameters

args string[]

Returns

string

BuildPathv(string, string[])

[Version("2.8")]
public static string BuildPathv(string separator, string[] args)

Parameters

separator string
args string[]

Returns

string

CanonicalizeFilename(string, string?)

[Version("2.58")]
public static string CanonicalizeFilename(string filename, string? relativeTo)

Parameters

filename string
relativeTo string

Returns

string

Chdir(string)

[Version("2.8")]
public static int Chdir(string path)

Parameters

path string

Returns

int

CheckVersion(uint, uint, uint)

[Version("2.6")]
public static string? CheckVersion(uint requiredMajor, uint requiredMinor, uint requiredMicro)

Parameters

requiredMajor uint
requiredMinor uint
requiredMicro uint

Returns

string

ChecksumTypeGetLength(ChecksumType)

[Version("2.16")]
public static nint ChecksumTypeGetLength(ChecksumType checksumType)

Parameters

checksumType ChecksumType

Returns

nint

ChildWatchAdd(int, Pid, ChildWatchFunc)

[Version("2.4")]
public static uint ChildWatchAdd(int priority, Pid pid, ChildWatchFunc function)

Parameters

priority int
pid Pid
function ChildWatchFunc

Returns

uint

ChildWatchSourceNew(Pid)

[Version("2.4")]
public static Source ChildWatchSourceNew(Pid pid)

Parameters

pid Pid

Returns

Source

Chmod(string, int)

[Version("2.8")]
public static int Chmod(string filename, int mode)

Parameters

filename string
mode int

Returns

int

ClearError()

public static void ClearError()

Close(int)

[Version("2.36")]
public static bool Close(int fd)

Parameters

fd int

Returns

bool

Closefrom(int)

[Version("2.80")]
public static int Closefrom(int lowfd)

Parameters

lowfd int

Returns

int

ComputeChecksumForBytes(ChecksumType, Bytes)

[Version("2.34")]
public static string? ComputeChecksumForBytes(ChecksumType checksumType, Bytes data)

Parameters

checksumType ChecksumType
data Bytes

Returns

string

ComputeChecksumForData(ChecksumType, Span<byte>)

[Version("2.16")]
public static string? ComputeChecksumForData(ChecksumType checksumType, Span<byte> data)

Parameters

checksumType ChecksumType
data Span<byte>

Returns

string

ComputeChecksumForString(ChecksumType, string, nint)

[Version("2.16")]
public static string? ComputeChecksumForString(ChecksumType checksumType, string str, nint length)

Parameters

checksumType ChecksumType
str string
length nint

Returns

string

ComputeHmacForBytes(ChecksumType, Bytes, Bytes)

[Version("2.50")]
public static string ComputeHmacForBytes(ChecksumType digestType, Bytes key, Bytes data)

Parameters

digestType ChecksumType
key Bytes
data Bytes

Returns

string

ComputeHmacForData(ChecksumType, Span<byte>, Span<byte>)

[Version("2.30")]
public static string ComputeHmacForData(ChecksumType digestType, Span<byte> key, Span<byte> data)

Parameters

digestType ChecksumType
key Span<byte>
data Span<byte>

Returns

string

ComputeHmacForString(ChecksumType, Span<byte>, string, nint)

[Version("2.30")]
public static string ComputeHmacForString(ChecksumType digestType, Span<byte> key, string str, nint length)

Parameters

digestType ChecksumType
key Span<byte>
str string
length nint

Returns

string

CondNew()

public static Cond CondNew()

Returns

Cond

ConvertErrorQuark()

public static Quark ConvertErrorQuark()

Returns

Quark

Creat(string, int)

[Version("2.8")]
public static int Creat(string filename, int mode)

Parameters

filename string
mode int

Returns

int

DatalistClear(Data)

public static void DatalistClear(Data datalist)

Parameters

datalist Data

DatalistForeach(Data, DataForeachFunc)

public static void DatalistForeach(Data datalist, DataForeachFunc func)

Parameters

datalist Data
func DataForeachFunc

DatalistGetData(Data, string)

public static nint DatalistGetData(Data datalist, string key)

Parameters

datalist Data
key string

Returns

nint

DatalistGetFlags(Data)

[Version("2.8")]
public static uint DatalistGetFlags(Data datalist)

Parameters

datalist Data

Returns

uint

DatalistIdDupData(Data, Quark, DuplicateFunc?)

[Version("2.34")]
public static nint DatalistIdDupData(Data datalist, Quark keyId, DuplicateFunc? dupFunc)

Parameters

datalist Data
keyId Quark
dupFunc DuplicateFunc

Returns

nint

DatalistIdGetData(Data, Quark)

public static nint DatalistIdGetData(Data datalist, Quark keyId)

Parameters

datalist Data
keyId Quark

Returns

nint

DatalistIdRemoveNoNotify(Data, Quark)

public static nint DatalistIdRemoveNoNotify(Data datalist, Quark keyId)

Parameters

datalist Data
keyId Quark

Returns

nint

DatalistInit(Data)

public static void DatalistInit(Data datalist)

Parameters

datalist Data

DatalistSetFlags(Data, uint)

[Version("2.8")]
public static void DatalistSetFlags(Data datalist, uint flags)

Parameters

datalist Data
flags uint

DatalistUnsetFlags(Data, uint)

[Version("2.8")]
public static void DatalistUnsetFlags(Data datalist, uint flags)

Parameters

datalist Data
flags uint

DatasetDestroy(nint)

public static void DatasetDestroy(nint datasetLocation)

Parameters

datasetLocation nint

DatasetForeach(nint, DataForeachFunc)

public static void DatasetForeach(nint datasetLocation, DataForeachFunc func)

Parameters

datasetLocation nint
func DataForeachFunc

DatasetIdGetData(nint, Quark)

public static nint DatasetIdGetData(nint datasetLocation, Quark keyId)

Parameters

datasetLocation nint
keyId Quark

Returns

nint

DatasetIdRemoveNoNotify(nint, Quark)

public static nint DatasetIdRemoveNoNotify(nint datasetLocation, Quark keyId)

Parameters

datasetLocation nint
keyId Quark

Returns

nint

DateGetDaysInMonth(DateMonth, DateYear)

public static byte DateGetDaysInMonth(DateMonth month, DateYear year)

Parameters

month DateMonth
year DateYear

Returns

byte

DateGetMondayWeeksInYear(DateYear)

public static byte DateGetMondayWeeksInYear(DateYear year)

Parameters

year DateYear

Returns

byte

DateGetSundayWeeksInYear(DateYear)

public static byte DateGetSundayWeeksInYear(DateYear year)

Parameters

year DateYear

Returns

byte

DateIsLeapYear(DateYear)

public static bool DateIsLeapYear(DateYear year)

Parameters

year DateYear

Returns

bool

DateStrftime(string, nuint, string, Date)

public static nuint DateStrftime(string s, nuint slen, string format, Date date)

Parameters

s string
slen nuint
format string
date Date

Returns

nuint

DateValidDay(DateDay)

public static bool DateValidDay(DateDay day)

Parameters

day DateDay

Returns

bool

DateValidDmy(DateDay, DateMonth, DateYear)

public static bool DateValidDmy(DateDay day, DateMonth month, DateYear year)

Parameters

day DateDay
month DateMonth
year DateYear

Returns

bool

DateValidJulian(uint)

public static bool DateValidJulian(uint julianDate)

Parameters

julianDate uint

Returns

bool

DateValidMonth(DateMonth)

public static bool DateValidMonth(DateMonth month)

Parameters

month DateMonth

Returns

bool

DateValidWeekday(DateWeekday)

public static bool DateValidWeekday(DateWeekday weekday)

Parameters

weekday DateWeekday

Returns

bool

DateValidYear(DateYear)

public static bool DateValidYear(DateYear year)

Parameters

year DateYear

Returns

bool

Dcgettext(string?, string, int)

[Version("2.26")]
public static string Dcgettext(string? domain, string msgid, int category)

Parameters

domain string
msgid string
category int

Returns

string

Dgettext(string?, string)

[Version("2.18")]
public static string Dgettext(string? domain, string msgid)

Parameters

domain string
msgid string

Returns

string

DirMakeTmp(string?)

[Version("2.30")]
public static string DirMakeTmp(string? tmpl)

Parameters

tmpl string

Returns

string

DirectEqual(nint, nint)

public static bool DirectEqual(nint v1, nint v2)

Parameters

v1 nint
v2 nint

Returns

bool

DirectHash(nint)

public static uint DirectHash(nint v)

Parameters

v nint

Returns

uint

Dngettext(string?, string, string, ulong)

[Version("2.18")]
public static string Dngettext(string? domain, string msgid, string msgidPlural, ulong n)

Parameters

domain string
msgid string
msgidPlural string
n ulong

Returns

string

DoubleEqual(nint, nint)

[Version("2.22")]
public static bool DoubleEqual(nint v1, nint v2)

Parameters

v1 nint
v2 nint

Returns

bool

DoubleHash(nint)

[Version("2.22")]
public static uint DoubleHash(nint v)

Parameters

v nint

Returns

uint

Dpgettext(string?, string, nuint)

[Version("2.16")]
public static string Dpgettext(string? domain, string msgctxtid, nuint msgidoffset)

Parameters

domain string
msgctxtid string
msgidoffset nuint

Returns

string

Dpgettext2(string?, string, string)

[Version("2.18")]
public static string Dpgettext2(string? domain, string context, string msgid)

Parameters

domain string
context string
msgid string

Returns

string

EnvironGetenv(string[]?, string)

[Version("2.32")]
public static string? EnvironGetenv(string[]? envp, string variable)

Parameters

envp string[]
variable string

Returns

string

EnvironSetenv(string[]?, string, string, bool)

[Version("2.32")]
public static string[] EnvironSetenv(string[]? envp, string variable, string value, bool overwrite)

Parameters

envp string[]
variable string
value string
overwrite bool

Returns

string[]

EnvironUnsetenv(string[]?, string)

[Version("2.32")]
public static string[] EnvironUnsetenv(string[]? envp, string variable)

Parameters

envp string[]
variable string

Returns

string[]

FdwalkSetCloexec(int)

[Version("2.80")]
public static int FdwalkSetCloexec(int lowfd)

Parameters

lowfd int

Returns

int

FileErrorFromErrno(int)

public static FileError FileErrorFromErrno(int errNo)

Parameters

errNo int

Returns

FileError

FileErrorQuark()

public static Quark FileErrorQuark()

Returns

Quark

FileOpenTmp(string?, out string)

public static int FileOpenTmp(string? tmpl, out string nameUsed)

Parameters

tmpl string
nameUsed string

Returns

int
[Version("2.4")]
public static string FileReadLink(string filename)

Parameters

filename string

Returns

string

FileSetContents(string, Span<byte>)

[Version("2.8")]
public static bool FileSetContents(string filename, Span<byte> contents)

Parameters

filename string
contents Span<byte>

Returns

bool

FileSetContentsFull(string, Span<byte>, FileSetContentsFlags, int)

[Version("2.66")]
public static bool FileSetContentsFull(string filename, Span<byte> contents, FileSetContentsFlags flags, int mode)

Parameters

filename string
contents Span<byte>
flags FileSetContentsFlags
mode int

Returns

bool

FileTest(string, FileTest)

public static bool FileTest(string filename, FileTest test)

Parameters

filename string
test FileTest

Returns

bool

FilenameDisplayBasename(string)

[Version("2.6")]
public static string FilenameDisplayBasename(string filename)

Parameters

filename string

Returns

string

FilenameDisplayName(string)

[Version("2.6")]
public static string FilenameDisplayName(string filename)

Parameters

filename string

Returns

string

FilenameFromUri(string, out string?)

public static string FilenameFromUri(string uri, out string? hostname)

Parameters

uri string
hostname string

Returns

string

FilenameFromUtf8(string, nint, out nuint, out nuint)

public static string FilenameFromUtf8(string utf8string, nint len, out nuint bytesRead, out nuint bytesWritten)

Parameters

utf8string string
len nint
bytesRead nuint
bytesWritten nuint

Returns

string

FilenameToUri(string, string?)

public static string FilenameToUri(string filename, string? hostname)

Parameters

filename string
hostname string

Returns

string

FilenameToUtf8(string, nint, out nuint, out nuint)

public static string FilenameToUtf8(string opsysstring, nint len, out nuint bytesRead, out nuint bytesWritten)

Parameters

opsysstring string
len nint
bytesRead nuint
bytesWritten nuint

Returns

string

FindProgramInPath(string)

public static string? FindProgramInPath(string program)

Parameters

program string

Returns

string

Fopen(string, string)

[Version("2.6")]
public static nint Fopen(string filename, string mode)

Parameters

filename string
mode string

Returns

nint

FormatSize(ulong)

[Version("2.30")]
public static string FormatSize(ulong size)

Parameters

size ulong

Returns

string

FormatSizeForDisplay(long)

[Version("2.16")]
public static string FormatSizeForDisplay(long size)

Parameters

size long

Returns

string

FormatSizeFull(ulong, FormatSizeFlags)

[Version("2.30")]
public static string FormatSizeFull(ulong size, FormatSizeFlags flags)

Parameters

size ulong
flags FormatSizeFlags

Returns

string

Free(nint)

public static void Free(nint mem)

Parameters

mem nint

FreeSized(nint, nuint)

[Version("2.76")]
public static void FreeSized(nint mem, nuint size)

Parameters

mem nint
size nuint

Freopen(string, string, nint)

[Version("2.6")]
public static nint Freopen(string filename, string mode, nint stream)

Parameters

filename string
mode string
stream nint

Returns

nint

Fsync(int)

[Version("2.64")]
public static int Fsync(int fd)

Parameters

fd int

Returns

int

GetApplicationName()

[Version("2.2")]
public static string? GetApplicationName()

Returns

string

GetCharset(out string)

public static bool GetCharset(out string charset)

Parameters

charset string

Returns

bool

GetCodeset()

public static string GetCodeset()

Returns

string

GetConsoleCharset(out string)

[Version("2.62")]
public static bool GetConsoleCharset(out string charset)

Parameters

charset string

Returns

bool

GetCurrentDir()

public static string GetCurrentDir()

Returns

string

GetCurrentTime(TimeVal)

public static void GetCurrentTime(TimeVal result)

Parameters

result TimeVal

GetEnviron()

[Version("2.28")]
public static string[] GetEnviron()

Returns

string[]

GetFilenameCharsets(out string[])

[Version("2.6")]
public static bool GetFilenameCharsets(out string[] filenameCharsets)

Parameters

filenameCharsets string[]

Returns

bool

GetHomeDir()

public static string GetHomeDir()

Returns

string

GetHostName()

[Version("2.8")]
public static string GetHostName()

Returns

string

GetLanguageNames()

[Version("2.6")]
public static string[] GetLanguageNames()

Returns

string[]

GetLanguageNamesWithCategory(string)

[Version("2.58")]
public static string[] GetLanguageNamesWithCategory(string categoryName)

Parameters

categoryName string

Returns

string[]

GetLocaleVariants(string)

[Version("2.28")]
public static string[] GetLocaleVariants(string locale)

Parameters

locale string

Returns

string[]

GetMonotonicTime()

[Version("2.28")]
public static long GetMonotonicTime()

Returns

long

GetNumProcessors()

[Version("2.36")]
public static uint GetNumProcessors()

Returns

uint

GetOsInfo(string)

[Version("2.64")]
public static string? GetOsInfo(string keyName)

Parameters

keyName string

Returns

string

GetPrgname()

public static string? GetPrgname()

Returns

string

GetRealName()

public static string GetRealName()

Returns

string

GetRealTime()

[Version("2.28")]
public static long GetRealTime()

Returns

long

GetSystemConfigDirs()

[Version("2.6")]
public static string[] GetSystemConfigDirs()

Returns

string[]

GetSystemDataDirs()

[Version("2.6")]
public static string[] GetSystemDataDirs()

Returns

string[]

GetTmpDir()

public static string GetTmpDir()

Returns

string

GetUserCacheDir()

[Version("2.6")]
public static string GetUserCacheDir()

Returns

string

GetUserConfigDir()

[Version("2.6")]
public static string GetUserConfigDir()

Returns

string

GetUserDataDir()

[Version("2.6")]
public static string GetUserDataDir()

Returns

string

GetUserName()

public static string GetUserName()

Returns

string

GetUserRuntimeDir()

[Version("2.28")]
public static string GetUserRuntimeDir()

Returns

string

GetUserSpecialDir(UserDirectory)

[Version("2.14")]
public static string? GetUserSpecialDir(UserDirectory directory)

Parameters

directory UserDirectory

Returns

string

GetUserStateDir()

[Version("2.72")]
public static string GetUserStateDir()

Returns

string

Getenv(string)

public static string? Getenv(string variable)

Parameters

variable string

Returns

string

HashTableAdd(HashTable, nint)

[Version("2.32")]
public static bool HashTableAdd(HashTable hashTable, nint key)

Parameters

hashTable HashTable
key nint

Returns

bool

HashTableContains(HashTable, nint)

[Version("2.32")]
public static bool HashTableContains(HashTable hashTable, nint key)

Parameters

hashTable HashTable
key nint

Returns

bool

HashTableDestroy(HashTable)

public static void HashTableDestroy(HashTable hashTable)

Parameters

hashTable HashTable

HashTableFind(HashTable, HRFunc)

[Version("2.4")]
public static nint HashTableFind(HashTable hashTable, HRFunc predicate)

Parameters

hashTable HashTable
predicate HRFunc

Returns

nint

HashTableForeach(HashTable, HFunc)

public static void HashTableForeach(HashTable hashTable, HFunc func)

Parameters

hashTable HashTable
func HFunc

HashTableForeachRemove(HashTable, HRFunc)

public static uint HashTableForeachRemove(HashTable hashTable, HRFunc func)

Parameters

hashTable HashTable
func HRFunc

Returns

uint

HashTableForeachSteal(HashTable, HRFunc)

public static uint HashTableForeachSteal(HashTable hashTable, HRFunc func)

Parameters

hashTable HashTable
func HRFunc

Returns

uint

HashTableInsert(HashTable, nint, nint)

public static bool HashTableInsert(HashTable hashTable, nint key, nint value)

Parameters

hashTable HashTable
key nint
value nint

Returns

bool

HashTableLookup(HashTable, nint)

public static nint HashTableLookup(HashTable hashTable, nint key)

Parameters

hashTable HashTable
key nint

Returns

nint

HashTableLookupExtended(HashTable, nint, out nint, out nint)

public static bool HashTableLookupExtended(HashTable hashTable, nint lookupKey, out nint origKey, out nint value)

Parameters

hashTable HashTable
lookupKey nint
origKey nint
value nint

Returns

bool

HashTableNewSimilar(HashTable)

[Version("2.72")]
public static HashTable HashTableNewSimilar(HashTable otherHashTable)

Parameters

otherHashTable HashTable

Returns

HashTable

HashTableRef(HashTable)

[Version("2.10")]
public static HashTable HashTableRef(HashTable hashTable)

Parameters

hashTable HashTable

Returns

HashTable

HashTableRemove(HashTable, nint)

public static bool HashTableRemove(HashTable hashTable, nint key)

Parameters

hashTable HashTable
key nint

Returns

bool

HashTableRemoveAll(HashTable)

[Version("2.12")]
public static void HashTableRemoveAll(HashTable hashTable)

Parameters

hashTable HashTable

HashTableReplace(HashTable, nint, nint)

public static bool HashTableReplace(HashTable hashTable, nint key, nint value)

Parameters

hashTable HashTable
key nint
value nint

Returns

bool

HashTableSize(HashTable)

public static uint HashTableSize(HashTable hashTable)

Parameters

hashTable HashTable

Returns

uint

HashTableSteal(HashTable, nint)

public static bool HashTableSteal(HashTable hashTable, nint key)

Parameters

hashTable HashTable
key nint

Returns

bool

HashTableStealAll(HashTable)

[Version("2.12")]
public static void HashTableStealAll(HashTable hashTable)

Parameters

hashTable HashTable

HashTableStealExtended(HashTable, nint, out nint, out nint)

[Version("2.58")]
public static bool HashTableStealExtended(HashTable hashTable, nint lookupKey, out nint stolenKey, out nint stolenValue)

Parameters

hashTable HashTable
lookupKey nint
stolenKey nint
stolenValue nint

Returns

bool

HashTableUnref(HashTable)

[Version("2.10")]
public static void HashTableUnref(HashTable hashTable)

Parameters

hashTable HashTable

HookDestroy(HookList, ulong)

public static bool HookDestroy(HookList hookList, ulong hookId)

Parameters

hookList HookList
hookId ulong

Returns

bool
public static void HookDestroyLink(HookList hookList, Hook hook)

Parameters

hookList HookList
hook Hook

HookFree(HookList, Hook)

public static void HookFree(HookList hookList, Hook hook)

Parameters

hookList HookList
hook Hook

HookInsertBefore(HookList, Hook?, Hook)

public static void HookInsertBefore(HookList hookList, Hook? sibling, Hook hook)

Parameters

hookList HookList
sibling Hook
hook Hook

HookInsertSorted(HookList, Hook, HookCompareFunc)

public static void HookInsertSorted(HookList hookList, Hook hook, HookCompareFunc func)

Parameters

hookList HookList
hook Hook
func HookCompareFunc

HookPrepend(HookList, Hook)

public static void HookPrepend(HookList hookList, Hook hook)

Parameters

hookList HookList
hook Hook

HookUnref(HookList, Hook)

public static void HookUnref(HookList hookList, Hook hook)

Parameters

hookList HookList
hook Hook

HostnameIsAsciiEncoded(string)

[Version("2.22")]
public static bool HostnameIsAsciiEncoded(string hostname)

Parameters

hostname string

Returns

bool

HostnameIsIpAddress(string)

[Version("2.22")]
public static bool HostnameIsIpAddress(string hostname)

Parameters

hostname string

Returns

bool

HostnameIsNonAscii(string)

[Version("2.22")]
public static bool HostnameIsNonAscii(string hostname)

Parameters

hostname string

Returns

bool

HostnameToAscii(string)

[Version("2.22")]
public static string? HostnameToAscii(string hostname)

Parameters

hostname string

Returns

string

HostnameToUnicode(string)

[Version("2.22")]
public static string? HostnameToUnicode(string hostname)

Parameters

hostname string

Returns

string

Iconv(IConv, string, ref nuint, string, ref nuint)

public static nuint Iconv(IConv converter, string inbuf, ref nuint inbytesLeft, string outbuf, ref nuint outbytesLeft)

Parameters

converter IConv
inbuf string
inbytesLeft nuint
outbuf string
outbytesLeft nuint

Returns

nuint

IconvOpen(string, string)

public static IConv IconvOpen(string toCodeset, string fromCodeset)

Parameters

toCodeset string
fromCodeset string

Returns

IConv

IdleAdd(int, SourceFunc)

public static uint IdleAdd(int priority, SourceFunc function)

Parameters

priority int
function SourceFunc

Returns

uint

IdleRemoveByData(nint)

public static bool IdleRemoveByData(nint data)

Parameters

data nint

Returns

bool

IdleSourceNew()

public static Source IdleSourceNew()

Returns

Source

Int64Equal(nint, nint)

[Version("2.22")]
public static bool Int64Equal(nint v1, nint v2)

Parameters

v1 nint
v2 nint

Returns

bool

Int64Hash(nint)

[Version("2.22")]
public static uint Int64Hash(nint v)

Parameters

v nint

Returns

uint

IntEqual(nint, nint)

public static bool IntEqual(nint v1, nint v2)

Parameters

v1 nint
v2 nint

Returns

bool

IntHash(nint)

public static uint IntHash(nint v)

Parameters

v nint

Returns

uint

InternStaticString(string?)

[Version("2.10")]
public static string InternStaticString(string? @string)

Parameters

string string

Returns

string

InternString(string?)

[Version("2.10")]
public static string InternString(string? @string)

Parameters

string string

Returns

string

IoAddWatch(IOChannel, int, IOCondition, IOFunc)

public static uint IoAddWatch(IOChannel channel, int priority, IOCondition condition, IOFunc func)

Parameters

channel IOChannel
priority int
condition IOCondition
func IOFunc

Returns

uint

IoChannelErrorFromErrno(int)

public static IOChannelError IoChannelErrorFromErrno(int en)

Parameters

en int

Returns

IOChannelError

IoChannelErrorQuark()

public static Quark IoChannelErrorQuark()

Returns

Quark

IoChannelWin32Poll(PollFD, int, int)

public static int IoChannelWin32Poll(PollFD fds, int nFds, int timeout)

Parameters

fds PollFD
nFds int
timeout int

Returns

int

IoCreateWatch(IOChannel, IOCondition)

public static Source IoCreateWatch(IOChannel channel, IOCondition condition)

Parameters

channel IOChannel
condition IOCondition

Returns

Source

KeyFileErrorQuark()

public static Quark KeyFileErrorQuark()

Returns

Quark

ListPopAllocator()

public static void ListPopAllocator()

ListPushAllocator(Allocator)

public static void ListPushAllocator(Allocator allocator)

Parameters

allocator Allocator

Listenv()

[Version("2.8")]
public static string[] Listenv()

Returns

string[]

LocaleToUtf8(Span<byte>, out nuint, out nuint)

public static string LocaleToUtf8(Span<byte> opsysstring, out nuint bytesRead, out nuint bytesWritten)

Parameters

opsysstring Span<byte>
bytesRead nuint
bytesWritten nuint

Returns

string

LogDefaultHandler(string?, LogLevelFlags, string?, nint)

public static void LogDefaultHandler(string? logDomain, LogLevelFlags logLevel, string? message, nint unusedData)

Parameters

logDomain string
logLevel LogLevelFlags
message string
unusedData nint

LogGetDebugEnabled()

[Version("2.72")]
public static bool LogGetDebugEnabled()

Returns

bool

LogRemoveHandler(string, uint)

public static void LogRemoveHandler(string logDomain, uint handlerId)

Parameters

logDomain string
handlerId uint

LogSetAlwaysFatal(LogLevelFlags)

public static LogLevelFlags LogSetAlwaysFatal(LogLevelFlags fatalMask)

Parameters

fatalMask LogLevelFlags

Returns

LogLevelFlags

LogSetDebugEnabled(bool)

[Version("2.72")]
public static void LogSetDebugEnabled(bool enabled)

Parameters

enabled bool

LogSetFatalMask(string, LogLevelFlags)

public static LogLevelFlags LogSetFatalMask(string logDomain, LogLevelFlags fatalMask)

Parameters

logDomain string
fatalMask LogLevelFlags

Returns

LogLevelFlags

LogSetHandler(string?, LogLevelFlags, LogFunc)

[Version("2.46")]
public static uint LogSetHandler(string? logDomain, LogLevelFlags logLevels, LogFunc logFunc)

Parameters

logDomain string
logLevels LogLevelFlags
logFunc LogFunc

Returns

uint

LogSetWriterFunc(LogWriterFunc)

[Version("2.50")]
public static void LogSetWriterFunc(LogWriterFunc func)

Parameters

func LogWriterFunc

LogStructuredArray(LogLevelFlags, LogField[])

[Version("2.50")]
public static void LogStructuredArray(LogLevelFlags logLevel, LogField[] fields)

Parameters

logLevel LogLevelFlags
fields LogField[]

LogVariant(string?, LogLevelFlags, Variant)

[Version("2.50")]
public static void LogVariant(string? logDomain, LogLevelFlags logLevel, Variant fields)

Parameters

logDomain string
logLevel LogLevelFlags
fields Variant

LogWriterDefault(LogLevelFlags, LogField[], nint)

[Version("2.50")]
public static LogWriterOutput LogWriterDefault(LogLevelFlags logLevel, LogField[] fields, nint userData)

Parameters

logLevel LogLevelFlags
fields LogField[]
userData nint

Returns

LogWriterOutput

LogWriterDefaultSetDebugDomains(string?)

[Version("2.80")]
public static void LogWriterDefaultSetDebugDomains(string? domains)

Parameters

domains string

LogWriterDefaultSetUseStderr(bool)

[Version("2.68")]
public static void LogWriterDefaultSetUseStderr(bool useStderr)

Parameters

useStderr bool

LogWriterDefaultWouldDrop(LogLevelFlags, string?)

[Version("2.68")]
public static bool LogWriterDefaultWouldDrop(LogLevelFlags logLevel, string? logDomain)

Parameters

logLevel LogLevelFlags
logDomain string

Returns

bool

LogWriterFormatFields(LogLevelFlags, LogField[], bool)

[Version("2.50")]
public static string LogWriterFormatFields(LogLevelFlags logLevel, LogField[] fields, bool useColor)

Parameters

logLevel LogLevelFlags
fields LogField[]
useColor bool

Returns

string

LogWriterIsJournald(int)

[Version("2.50")]
public static bool LogWriterIsJournald(int outputFd)

Parameters

outputFd int

Returns

bool

LogWriterJournald(LogLevelFlags, LogField[], nint)

[Version("2.50")]
public static LogWriterOutput LogWriterJournald(LogLevelFlags logLevel, LogField[] fields, nint userData)

Parameters

logLevel LogLevelFlags
fields LogField[]
userData nint

Returns

LogWriterOutput

LogWriterStandardStreams(LogLevelFlags, LogField[], nint)

[Version("2.50")]
public static LogWriterOutput LogWriterStandardStreams(LogLevelFlags logLevel, LogField[] fields, nint userData)

Parameters

logLevel LogLevelFlags
fields LogField[]
userData nint

Returns

LogWriterOutput

LogWriterSupportsColor(int)

[Version("2.50")]
public static bool LogWriterSupportsColor(int outputFd)

Parameters

outputFd int

Returns

bool

LogWriterSyslog(LogLevelFlags, LogField[], nint)

[Version("2.80")]
public static LogWriterOutput LogWriterSyslog(LogLevelFlags logLevel, LogField[] fields, nint userData)

Parameters

logLevel LogLevelFlags
fields LogField[]
userData nint

Returns

LogWriterOutput

Logv(string?, LogLevelFlags, string, nint)

public static void Logv(string? logDomain, LogLevelFlags logLevel, string format, nint args)

Parameters

logDomain string
logLevel LogLevelFlags
format string
args nint

Lstat(string, StatBuf)

[Version("2.6")]
public static int Lstat(string filename, StatBuf buf)

Parameters

filename string
buf StatBuf

Returns

int

MainContextDefault()

public static MainContext MainContextDefault()

Returns

MainContext

MainContextGetThreadDefault()

[Version("2.22")]
public static MainContext? MainContextGetThreadDefault()

Returns

MainContext

MainContextRefThreadDefault()

[Version("2.32")]
public static MainContext MainContextRefThreadDefault()

Returns

MainContext

MainCurrentSource()

[Version("2.12")]
public static Source? MainCurrentSource()

Returns

Source

MainDepth()

public static int MainDepth()

Returns

int

Malloc(nuint)

public static nint Malloc(nuint nBytes)

Parameters

nBytes nuint

Returns

nint

Malloc0(nuint)

public static nint Malloc0(nuint nBytes)

Parameters

nBytes nuint

Returns

nint

Malloc0N(nuint, nuint)

[Version("2.24")]
public static nint Malloc0N(nuint nBlocks, nuint nBlockBytes)

Parameters

nBlocks nuint
nBlockBytes nuint

Returns

nint

MallocN(nuint, nuint)

[Version("2.24")]
public static nint MallocN(nuint nBlocks, nuint nBlockBytes)

Parameters

nBlocks nuint
nBlockBytes nuint

Returns

nint

MarkupErrorQuark()

public static Quark MarkupErrorQuark()

Returns

Quark

MarkupEscapeText(string, nint)

public static string MarkupEscapeText(string text, nint length)

Parameters

text string
length nint

Returns

string

MarkupVprintfEscaped(string, nint)

[Version("2.4")]
public static string MarkupVprintfEscaped(string format, nint args)

Parameters

format string
args nint

Returns

string

MemChunkInfo()

public static void MemChunkInfo()

MemIsSystemMalloc()

public static bool MemIsSystemMalloc()

Returns

bool

MemProfile()

public static void MemProfile()

MemSetVtable(MemVTable)

public static void MemSetVtable(MemVTable vtable)

Parameters

vtable MemVTable

Memdup(nint, uint)

public static nint Memdup(nint mem, uint byteSize)

Parameters

mem nint
byteSize uint

Returns

nint

Memdup2(nint, nuint)

[Version("2.68")]
public static nint Memdup2(nint mem, nuint byteSize)

Parameters

mem nint
byteSize nuint

Returns

nint

Mkdir(string, int)

[Version("2.6")]
public static int Mkdir(string filename, int mode)

Parameters

filename string
mode int

Returns

int

MkdirWithParents(string, int)

[Version("2.8")]
public static int MkdirWithParents(string pathname, int mode)

Parameters

pathname string
mode int

Returns

int

Mkdtemp(string)

[Version("2.30")]
public static string? Mkdtemp(string tmpl)

Parameters

tmpl string

Returns

string

MkdtempFull(string, int)

[Version("2.30")]
public static string? MkdtempFull(string tmpl, int mode)

Parameters

tmpl string
mode int

Returns

string

Mkstemp(string)

public static int Mkstemp(string tmpl)

Parameters

tmpl string

Returns

int

MkstempFull(string, int, int)

[Version("2.22")]
public static int MkstempFull(string tmpl, int flags, int mode)

Parameters

tmpl string
flags int
mode int

Returns

int

NodePopAllocator()

public static void NodePopAllocator()

NodePushAllocator(Allocator)

public static void NodePushAllocator(Allocator allocator)

Parameters

allocator Allocator

NullifyPointer(nint)

public static void NullifyPointer(nint nullifyLocation)

Parameters

nullifyLocation nint

NumberParserErrorQuark()

public static Quark NumberParserErrorQuark()

Returns

Quark

OnErrorQuery(string)

public static void OnErrorQuery(string prgName)

Parameters

prgName string

OnErrorStackTrace(string)

public static void OnErrorStackTrace(string prgName)

Parameters

prgName string

OnceInitEnter(ref nint)

[Version("2.14")]
public static bool OnceInitEnter(ref nint location)

Parameters

location nint

Returns

bool

OnceInitEnterImpl(ref nuint)

public static bool OnceInitEnterImpl(ref nuint location)

Parameters

location nuint

Returns

bool

OnceInitEnterPointer(nint)

[Version("2.80")]
public static bool OnceInitEnterPointer(nint location)

Parameters

location nint

Returns

bool

OnceInitLeave(ref nint, nuint)

[Version("2.14")]
public static void OnceInitLeave(ref nint location, nuint result)

Parameters

location nint
result nuint

OnceInitLeavePointer(nint, nint)

[Version("2.80")]
public static void OnceInitLeavePointer(nint location, nint result)

Parameters

location nint
result nint

Open(string, int, int)

[Version("2.6")]
public static int Open(string filename, int flags, int mode)

Parameters

filename string
flags int
mode int

Returns

int

OptionErrorQuark()

public static Quark OptionErrorQuark()

Returns

Quark

ParseDebugString(string?, DebugKey[])

public static uint ParseDebugString(string? @string, DebugKey[] keys)

Parameters

string string
keys DebugKey[]

Returns

uint

PathBufEqual(nint, nint)

[Version("2.76")]
public static bool PathBufEqual(nint v1, nint v2)

Parameters

v1 nint
v2 nint

Returns

bool

PathGetBasename(string)

public static string PathGetBasename(string fileName)

Parameters

fileName string

Returns

string

PathGetDirname(string)

public static string PathGetDirname(string fileName)

Parameters

fileName string

Returns

string

PathIsAbsolute(string)

public static bool PathIsAbsolute(string fileName)

Parameters

fileName string

Returns

bool

PathSkipRoot(string)

public static string? PathSkipRoot(string fileName)

Parameters

fileName string

Returns

string

PatternMatch(PatternSpec, uint, string, string?)

public static bool PatternMatch(PatternSpec pspec, uint stringLength, string @string, string? stringReversed)

Parameters

pspec PatternSpec
stringLength uint
string string
stringReversed string

Returns

bool

PatternMatchSimple(string, string)

public static bool PatternMatchSimple(string pattern, string @string)

Parameters

pattern string
string string

Returns

bool

PatternMatchString(PatternSpec, string)

public static bool PatternMatchString(PatternSpec pspec, string @string)

Parameters

pspec PatternSpec
string string

Returns

bool

PointerBitLock(nint, int)

[Version("2.30")]
public static void PointerBitLock(nint address, int lockBit)

Parameters

address nint
lockBit int

PointerBitLockAndGet(nint, uint, out nuint)

[Version("2.80")]
public static void PointerBitLockAndGet(nint address, uint lockBit, out nuint outPtr)

Parameters

address nint
lockBit uint
outPtr nuint

PointerBitLockMaskPtr(nint, uint, bool, nuint, nint)

[Version("2.80")]
public static nint PointerBitLockMaskPtr(nint ptr, uint lockBit, bool set, nuint preserveMask, nint preservePtr)

Parameters

ptr nint
lockBit uint
set bool
preserveMask nuint
preservePtr nint

Returns

nint

PointerBitTrylock(nint, int)

[Version("2.30")]
public static bool PointerBitTrylock(nint address, int lockBit)

Parameters

address nint
lockBit int

Returns

bool

PointerBitUnlock(nint, int)

[Version("2.30")]
public static void PointerBitUnlock(nint address, int lockBit)

Parameters

address nint
lockBit int

PointerBitUnlockAndSet(nint, uint, nint, nuint)

[Version("2.80")]
public static void PointerBitUnlockAndSet(nint address, uint lockBit, nint ptr, nuint preserveMask)

Parameters

address nint
lockBit uint
ptr nint
preserveMask nuint

Poll(PollFD, uint, int)

[Version("2.20")]
public static int Poll(PollFD fds, uint nfds, int timeout)

Parameters

fds PollFD
nfds uint
timeout int

Returns

int

PrintfStringUpperBound(string, nint)

public static nuint PrintfStringUpperBound(string format, nint args)

Parameters

format string
args nint

Returns

nuint

QsortWithData(nint, int, nuint, CompareDataFunc)

public static void QsortWithData(nint pbase, int totalElems, nuint size, CompareDataFunc compareFunc)

Parameters

pbase nint
totalElems int
size nuint
compareFunc CompareDataFunc

QuarkFromStaticString(string?)

public static Quark QuarkFromStaticString(string? @string)

Parameters

string string

Returns

Quark

QuarkFromString(string?)

public static Quark QuarkFromString(string? @string)

Parameters

string string

Returns

Quark

QuarkToString(Quark)

public static string QuarkToString(Quark quark)

Parameters

quark Quark

Returns

string

QuarkTryString(string?)

public static Quark QuarkTryString(string? @string)

Parameters

string string

Returns

Quark

RandomDouble()

public static double RandomDouble()

Returns

double

RandomDoubleRange(double, double)

public static double RandomDoubleRange(double begin, double end)

Parameters

begin double
end double

Returns

double

RandomInt()

public static uint RandomInt()

Returns

uint

RandomIntRange(int, int)

public static int RandomIntRange(int begin, int end)

Parameters

begin int
end int

Returns

int

RandomSetSeed(uint)

public static void RandomSetSeed(uint seed)

Parameters

seed uint

RcBoxAcquire(nint)

[Version("2.58")]
public static nint RcBoxAcquire(nint memBlock)

Parameters

memBlock nint

Returns

nint

RcBoxAlloc(nuint)

[Version("2.58")]
public static nint RcBoxAlloc(nuint blockSize)

Parameters

blockSize nuint

Returns

nint

RcBoxAlloc0(nuint)

[Version("2.58")]
public static nint RcBoxAlloc0(nuint blockSize)

Parameters

blockSize nuint

Returns

nint

RcBoxDup(nuint, nint)

[Version("2.58")]
public static nint RcBoxDup(nuint blockSize, nint memBlock)

Parameters

blockSize nuint
memBlock nint

Returns

nint

RcBoxGetSize(nint)

[Version("2.58")]
public static nuint RcBoxGetSize(nint memBlock)

Parameters

memBlock nint

Returns

nuint

RcBoxRelease(nint)

[Version("2.58")]
public static void RcBoxRelease(nint memBlock)

Parameters

memBlock nint

Realloc(nint, nuint)

public static nint Realloc(nint mem, nuint nBytes)

Parameters

mem nint
nBytes nuint

Returns

nint

ReallocN(nint, nuint, nuint)

[Version("2.24")]
public static nint ReallocN(nint mem, nuint nBlocks, nuint nBlockBytes)

Parameters

mem nint
nBlocks nuint
nBlockBytes nuint

Returns

nint

RefCountCompare(ref int, int)

[Version("2.58")]
public static bool RefCountCompare(ref int rc, int val)

Parameters

rc int
val int

Returns

bool

RefCountDec(ref int)

[Version("2.58")]
public static bool RefCountDec(ref int rc)

Parameters

rc int

Returns

bool

RefCountInc(ref int)

[Version("2.58")]
public static void RefCountInc(ref int rc)

Parameters

rc int

RefCountInit(ref int)

[Version("2.58")]
public static void RefCountInit(ref int rc)

Parameters

rc int

RefStringAcquire(string)

[Version("2.58")]
public static string RefStringAcquire(string str)

Parameters

str string

Returns

string

RefStringLength(string)

[Version("2.58")]
public static nuint RefStringLength(string str)

Parameters

str string

Returns

nuint

RefStringNew(string)

[Version("2.58")]
public static string RefStringNew(string str)

Parameters

str string

Returns

string

RefStringNewIntern(string)

[Version("2.58")]
public static string RefStringNewIntern(string str)

Parameters

str string

Returns

string

RefStringNewLen(string, nint)

[Version("2.58")]
public static string RefStringNewLen(string str, nint len)

Parameters

str string
len nint

Returns

string

RefStringRelease(string)

[Version("2.58")]
public static void RefStringRelease(string str)

Parameters

str string

RegexCheckReplacement(string, out bool)

[Version("2.14")]
public static bool RegexCheckReplacement(string replacement, out bool hasReferences)

Parameters

replacement string
hasReferences bool

Returns

bool

RegexErrorQuark()

public static Quark RegexErrorQuark()

Returns

Quark

RegexEscapeNul(string, int)

[Version("2.30")]
public static string RegexEscapeNul(string @string, int length)

Parameters

string string
length int

Returns

string

RegexEscapeString(string, int)

[Version("2.14")]
public static string RegexEscapeString(string @string, int length)

Parameters

string string
length int

Returns

string

RegexMatchSimple(string, string, RegexCompileFlags, RegexMatchFlags)

[Version("2.14")]
public static bool RegexMatchSimple(string pattern, string @string, RegexCompileFlags compileOptions, RegexMatchFlags matchOptions)

Parameters

pattern string
string string
compileOptions RegexCompileFlags
matchOptions RegexMatchFlags

Returns

bool

RegexSplitSimple(string, string, RegexCompileFlags, RegexMatchFlags)

[Version("2.14")]
public static string[] RegexSplitSimple(string pattern, string @string, RegexCompileFlags compileOptions, RegexMatchFlags matchOptions)

Parameters

pattern string
string string
compileOptions RegexCompileFlags
matchOptions RegexMatchFlags

Returns

string[]

ReloadUserSpecialDirsCache()

[Version("2.22")]
public static void ReloadUserSpecialDirsCache()

Remove(string)

[Version("2.6")]
public static int Remove(string filename)

Parameters

filename string

Returns

int

Rename(string, string)

[Version("2.6")]
public static int Rename(string oldfilename, string newfilename)

Parameters

oldfilename string
newfilename string

Returns

int

ReturnIfFailWarning(string?, string, string?)

public static void ReturnIfFailWarning(string? logDomain, string prettyFunction, string? expression)

Parameters

logDomain string
prettyFunction string
expression string

Rmdir(string)

[Version("2.6")]
public static int Rmdir(string filename)

Parameters

filename string

Returns

int

SequenceForeachRange(SequenceIter, SequenceIter, Func)

[Version("2.14")]
public static void SequenceForeachRange(SequenceIter begin, SequenceIter end, Func func)

Parameters

begin SequenceIter
end SequenceIter
func Func

SequenceGet(SequenceIter)

[Version("2.14")]
public static nint SequenceGet(SequenceIter iter)

Parameters

iter SequenceIter

Returns

nint

SequenceInsertBefore(SequenceIter, nint)

[Version("2.14")]
public static SequenceIter SequenceInsertBefore(SequenceIter iter, nint data)

Parameters

iter SequenceIter
data nint

Returns

SequenceIter

SequenceMove(SequenceIter, SequenceIter)

[Version("2.14")]
public static void SequenceMove(SequenceIter src, SequenceIter dest)

Parameters

src SequenceIter
dest SequenceIter

SequenceMoveRange(SequenceIter, SequenceIter, SequenceIter)

[Version("2.14")]
public static void SequenceMoveRange(SequenceIter dest, SequenceIter begin, SequenceIter end)

Parameters

dest SequenceIter
begin SequenceIter
end SequenceIter

SequenceRangeGetMidpoint(SequenceIter, SequenceIter)

[Version("2.14")]
public static SequenceIter SequenceRangeGetMidpoint(SequenceIter begin, SequenceIter end)

Parameters

begin SequenceIter
end SequenceIter

Returns

SequenceIter

SequenceRemove(SequenceIter)

[Version("2.14")]
public static void SequenceRemove(SequenceIter iter)

Parameters

iter SequenceIter

SequenceRemoveRange(SequenceIter, SequenceIter)

[Version("2.14")]
public static void SequenceRemoveRange(SequenceIter begin, SequenceIter end)

Parameters

begin SequenceIter
end SequenceIter

SequenceSet(SequenceIter, nint)

[Version("2.14")]
public static void SequenceSet(SequenceIter iter, nint data)

Parameters

iter SequenceIter
data nint

SequenceSortChanged(SequenceIter, CompareDataFunc)

[Version("2.14")]
public static void SequenceSortChanged(SequenceIter iter, CompareDataFunc cmpFunc)

Parameters

iter SequenceIter
cmpFunc CompareDataFunc

SequenceSortChangedIter(SequenceIter, SequenceIterCompareFunc)

[Version("2.14")]
public static void SequenceSortChangedIter(SequenceIter iter, SequenceIterCompareFunc iterCmp)

Parameters

iter SequenceIter
iterCmp SequenceIterCompareFunc

SequenceSwap(SequenceIter, SequenceIter)

[Version("2.14")]
public static void SequenceSwap(SequenceIter a, SequenceIter b)

Parameters

a SequenceIter
b SequenceIter

SetApplicationName(string)

[Version("2.2")]
public static void SetApplicationName(string applicationName)

Parameters

applicationName string

SetPrgname(string)

public static void SetPrgname(string prgname)

Parameters

prgname string

Setenv(string, string, bool)

[Version("2.4")]
public static bool Setenv(string variable, string value, bool overwrite)

Parameters

variable string
value string
overwrite bool

Returns

bool

ShellErrorQuark()

public static Quark ShellErrorQuark()

Returns

Quark

ShellParseArgv(string, out int, out string[])

public static bool ShellParseArgv(string commandLine, out int argcp, out string[] argvp)

Parameters

commandLine string
argcp int
argvp string[]

Returns

bool

ShellQuote(string)

public static string ShellQuote(string unquotedString)

Parameters

unquotedString string

Returns

string

ShellUnquote(string)

public static string ShellUnquote(string quotedString)

Parameters

quotedString string

Returns

string

SliceAlloc(nuint)

[Version("2.10")]
public static nint SliceAlloc(nuint blockSize)

Parameters

blockSize nuint

Returns

nint

SliceAlloc0(nuint)

[Version("2.10")]
public static nint SliceAlloc0(nuint blockSize)

Parameters

blockSize nuint

Returns

nint

SliceCopy(nuint, nint)

[Version("2.14")]
public static nint SliceCopy(nuint blockSize, nint memBlock)

Parameters

blockSize nuint
memBlock nint

Returns

nint

SliceFree1(nuint, nint)

[Version("2.10")]
public static void SliceFree1(nuint blockSize, nint memBlock)

Parameters

blockSize nuint
memBlock nint

SliceFreeChainWithOffset(nuint, nint, nuint)

[Version("2.10")]
public static void SliceFreeChainWithOffset(nuint blockSize, nint memChain, nuint nextOffset)

Parameters

blockSize nuint
memChain nint
nextOffset nuint

SliceGetConfig(SliceConfig)

public static long SliceGetConfig(SliceConfig ckey)

Parameters

ckey SliceConfig

Returns

long

SliceGetConfigState(SliceConfig, long, ref uint)

public static nint SliceGetConfigState(SliceConfig ckey, long address, ref uint nValues)

Parameters

ckey SliceConfig
address long
nValues uint

Returns

nint

SliceSetConfig(SliceConfig, long)

public static void SliceSetConfig(SliceConfig ckey, long value)

Parameters

ckey SliceConfig
value long

SlistPopAllocator()

public static void SlistPopAllocator()

SlistPushAllocator(Allocator)

public static void SlistPushAllocator(Allocator allocator)

Parameters

allocator Allocator

SourceRemove(uint)

public static bool SourceRemove(uint tag)

Parameters

tag uint

Returns

bool

SourceRemoveByFuncsUserData(SourceFuncs, nint)

public static bool SourceRemoveByFuncsUserData(SourceFuncs funcs, nint userData)

Parameters

funcs SourceFuncs
userData nint

Returns

bool

SourceRemoveByUserData(nint)

public static bool SourceRemoveByUserData(nint userData)

Parameters

userData nint

Returns

bool

SourceSetNameById(uint, string)

[Version("2.26")]
public static void SourceSetNameById(uint tag, string name)

Parameters

tag uint
name string

SpacedPrimesClosest(uint)

public static uint SpacedPrimesClosest(uint num)

Parameters

num uint

Returns

uint

SpawnCheckExitStatus(int)

[Version("2.34")]
public static bool SpawnCheckExitStatus(int waitStatus)

Parameters

waitStatus int

Returns

bool

SpawnCheckWaitStatus(int)

[Version("2.70")]
public static bool SpawnCheckWaitStatus(int waitStatus)

Parameters

waitStatus int

Returns

bool

SpawnClosePid(Pid)

public static void SpawnClosePid(Pid pid)

Parameters

pid Pid

SpawnCommandLineAsync(string)

public static bool SpawnCommandLineAsync(string commandLine)

Parameters

commandLine string

Returns

bool

SpawnErrorQuark()

public static Quark SpawnErrorQuark()

Returns

Quark

SpawnExitErrorQuark()

public static Quark SpawnExitErrorQuark()

Returns

Quark

Stat(string, StatBuf)

[Version("2.6")]
public static int Stat(string filename, StatBuf buf)

Parameters

filename string
buf StatBuf

Returns

int

Stpcpy(string, string)

public static string Stpcpy(string dest, string src)

Parameters

dest string
src string

Returns

string

StrEqual(nint, nint)

public static bool StrEqual(nint v1, nint v2)

Parameters

v1 nint
v2 nint

Returns

bool

StrHasPrefix(string, string)

[Version("2.2")]
public static bool StrHasPrefix(string str, string prefix)

Parameters

str string
prefix string

Returns

bool

StrHasSuffix(string, string)

[Version("2.2")]
public static bool StrHasSuffix(string str, string suffix)

Parameters

str string
suffix string

Returns

bool

StrHash(nint)

public static uint StrHash(nint v)

Parameters

v nint

Returns

uint

StrIsAscii(string)

[Version("2.40")]
public static bool StrIsAscii(string str)

Parameters

str string

Returns

bool

StrMatchString(string, string, bool)

[Version("2.40")]
public static bool StrMatchString(string searchTerm, string potentialHit, bool acceptAlternates)

Parameters

searchTerm string
potentialHit string
acceptAlternates bool

Returns

bool

StrToAscii(string, string?)

[Version("2.40")]
public static string StrToAscii(string str, string? fromLocale)

Parameters

str string
fromLocale string

Returns

string

StrTokenizeAndFold(string, string?, out string[])

[Version("2.40")]
public static string[] StrTokenizeAndFold(string @string, string? translitLocale, out string[] asciiAlternates)

Parameters

string string
translitLocale string
asciiAlternates string[]

Returns

string[]

Strcanon(string, string, sbyte)

public static string Strcanon(string @string, string validChars, sbyte substitutor)

Parameters

string string
validChars string
substitutor sbyte

Returns

string

Strcasecmp(string, string)

public static int Strcasecmp(string s1, string s2)

Parameters

s1 string
s2 string

Returns

int

Strchomp(string)

public static string Strchomp(string @string)

Parameters

string string

Returns

string

Strchug(string)

public static string Strchug(string @string)

Parameters

string string

Returns

string

Strcmp0(string?, string?)

[Version("2.16")]
public static int Strcmp0(string? str1, string? str2)

Parameters

str1 string
str2 string

Returns

int

Strcompress(string)

public static string Strcompress(string source)

Parameters

source string

Returns

string

Strdelimit(string, string?, sbyte)

public static string Strdelimit(string @string, string? delimiters, sbyte newDelimiter)

Parameters

string string
delimiters string
newDelimiter sbyte

Returns

string

Strdown(string)

public static string Strdown(string @string)

Parameters

string string

Returns

string

Strdup(string?)

public static string Strdup(string? str)

Parameters

str string

Returns

string

StrdupVprintf(string, nint)

public static string? StrdupVprintf(string format, nint args)

Parameters

format string
args nint

Returns

string

Strdupv(string[]?)

public static string[]? Strdupv(string[]? strArray)

Parameters

strArray string[]

Returns

string[]

Strerror(int)

public static string Strerror(int errnum)

Parameters

errnum int

Returns

string

Strescape(string, string?)

public static string Strescape(string source, string? exceptions)

Parameters

source string
exceptions string

Returns

string

Strfreev(string[]?)

public static void Strfreev(string[]? strArray)

Parameters

strArray string[]

StripContext(string, string)

[Version("2.4")]
public static string StripContext(string msgid, string msgval)

Parameters

msgid string
msgval string

Returns

string

Strjoinv(string?, string[])

public static string Strjoinv(string? separator, string[] strArray)

Parameters

separator string
strArray string[]

Returns

string

Strlcat(string, string, nuint)

public static nuint Strlcat(string dest, string src, nuint destSize)

Parameters

dest string
src string
destSize nuint

Returns

nuint

Strlcpy(string, string, nuint)

public static nuint Strlcpy(string dest, string src, nuint destSize)

Parameters

dest string
src string
destSize nuint

Returns

nuint

Strncasecmp(string, string, uint)

public static int Strncasecmp(string s1, string s2, uint n)

Parameters

s1 string
s2 string
n uint

Returns

int

Strndup(string?, nuint)

public static string? Strndup(string? str, nuint n)

Parameters

str string
n nuint

Returns

string

Strnfill(nuint, sbyte)

public static string Strnfill(nuint length, sbyte fillChar)

Parameters

length nuint
fillChar sbyte

Returns

string

Strreverse(string)

public static string Strreverse(string @string)

Parameters

string string

Returns

string

Strrstr(string, string)

public static string? Strrstr(string haystack, string needle)

Parameters

haystack string
needle string

Returns

string

StrrstrLen(string, nint, string)

public static string? StrrstrLen(string haystack, nint haystackLen, string needle)

Parameters

haystack string
haystackLen nint
needle string

Returns

string

Strsignal(int)

public static string Strsignal(int signum)

Parameters

signum int

Returns

string

Strsplit(string, string, int)

public static string[] Strsplit(string @string, string delimiter, int maxTokens)

Parameters

string string
delimiter string
maxTokens int

Returns

string[]

StrsplitSet(string, string, int)

[Version("2.4")]
public static string[] StrsplitSet(string @string, string delimiters, int maxTokens)

Parameters

string string
delimiters string
maxTokens int

Returns

string[]

StrstrLen(string, nint, string)

public static string? StrstrLen(string haystack, nint haystackLen, string needle)

Parameters

haystack string
haystackLen nint
needle string

Returns

string

Strtod(string, out string)

public static double Strtod(string nptr, out string endptr)

Parameters

nptr string
endptr string

Returns

double

Strup(string)

public static string Strup(string @string)

Parameters

string string

Returns

string

StrvContains(string[], string)

[Version("2.44")]
public static bool StrvContains(string[] strv, string str)

Parameters

strv string[]
str string

Returns

bool

StrvEqual(string[], string[])

[Version("2.60")]
public static bool StrvEqual(string[] strv1, string[] strv2)

Parameters

strv1 string[]
strv2 string[]

Returns

bool

StrvGetType()

public static Type StrvGetType()

Returns

Type

StrvLength(string[])

[Version("2.6")]
public static uint StrvLength(string[] strArray)

Parameters

strArray string[]

Returns

uint

TestAddDataFuncFull(string, nint, TestDataFunc)

[Version("2.34")]
public static void TestAddDataFuncFull(string testpath, nint testData, TestDataFunc testFunc)

Parameters

testpath string
testData nint
testFunc TestDataFunc

TestAssertExpectedMessagesInternal(string, string, int, string)

public static void TestAssertExpectedMessagesInternal(string domain, string file, int line, string func)

Parameters

domain string
file string
line int
func string

TestBug(string)

[Version("2.16")]
public static void TestBug(string bugUriSnippet)

Parameters

bugUriSnippet string

TestBugBase(string)

[Version("2.16")]
public static void TestBugBase(string uriPattern)

Parameters

uriPattern string

TestCreateSuite(string)

[Version("2.16")]
public static TestSuite TestCreateSuite(string suiteName)

Parameters

suiteName string

Returns

TestSuite

TestDisableCrashReporting()

[Version("2.78")]
public static void TestDisableCrashReporting()

TestExpectMessage(string?, LogLevelFlags, string)

[Version("2.34")]
public static void TestExpectMessage(string? logDomain, LogLevelFlags logLevel, string pattern)

Parameters

logDomain string
logLevel LogLevelFlags
pattern string

TestFail()

[Version("2.30")]
public static void TestFail()

TestFailed()

[Version("2.38")]
public static bool TestFailed()

Returns

bool

TestGetDir(TestFileType)

[Version("2.38")]
public static string TestGetDir(TestFileType fileType)

Parameters

fileType TestFileType

Returns

string

TestGetPath()

[Version("2.68")]
public static string TestGetPath()

Returns

string

TestGetRoot()

[Version("2.16")]
public static TestSuite TestGetRoot()

Returns

TestSuite

TestIncomplete(string?)

[Version("2.38")]
public static void TestIncomplete(string? msg)

Parameters

msg string

TestLogTypeName(TestLogType)

public static string TestLogTypeName(TestLogType logType)

Parameters

logType TestLogType

Returns

string

TestQueueFree(nint)

[Version("2.16")]
public static void TestQueueFree(nint gfreePointer)

Parameters

gfreePointer nint

TestRandDouble()

[Version("2.16")]
public static double TestRandDouble()

Returns

double

TestRandDoubleRange(double, double)

[Version("2.16")]
public static double TestRandDoubleRange(double rangeStart, double rangeEnd)

Parameters

rangeStart double
rangeEnd double

Returns

double

TestRandInt()

[Version("2.16")]
public static int TestRandInt()

Returns

int

TestRandIntRange(int, int)

[Version("2.16")]
public static int TestRandIntRange(int begin, int end)

Parameters

begin int
end int

Returns

int

TestRun()

[Version("2.16")]
public static int TestRun()

Returns

int

TestRunSuite(TestSuite)

[Version("2.16")]
public static int TestRunSuite(TestSuite suite)

Parameters

suite TestSuite

Returns

int

TestSetNonfatalAssertions()

[Version("2.38")]
public static void TestSetNonfatalAssertions()

TestSkip(string?)

[Version("2.38")]
public static void TestSkip(string? msg)

Parameters

msg string

TestSubprocess()

[Version("2.38")]
public static bool TestSubprocess()

Returns

bool

TestSummary(string)

[Version("2.62")]
public static void TestSummary(string summary)

Parameters

summary string

TestTimerElapsed()

[Version("2.16")]
public static double TestTimerElapsed()

Returns

double

TestTimerLast()

[Version("2.16")]
public static double TestTimerLast()

Returns

double

TestTimerStart()

[Version("2.16")]
public static void TestTimerStart()

TestTrapAssertions(string, string, int, string, ulong, string)

public static void TestTrapAssertions(string domain, string file, int line, string func, ulong assertionFlags, string pattern)

Parameters

domain string
file string
line int
func string
assertionFlags ulong
pattern string

TestTrapFork(ulong, TestTrapFlags)

[Version("2.16")]
public static bool TestTrapFork(ulong usecTimeout, TestTrapFlags testTrapFlags)

Parameters

usecTimeout ulong
testTrapFlags TestTrapFlags

Returns

bool

TestTrapHasPassed()

[Version("2.16")]
public static bool TestTrapHasPassed()

Returns

bool

TestTrapReachedTimeout()

[Version("2.16")]
public static bool TestTrapReachedTimeout()

Returns

bool

TestTrapSubprocess(string?, ulong, TestSubprocessFlags)

[Version("2.38")]
public static void TestTrapSubprocess(string? testPath, ulong usecTimeout, TestSubprocessFlags testFlags)

Parameters

testPath string
usecTimeout ulong
testFlags TestSubprocessFlags

TestTrapSubprocessWithEnvp(string?, string[]?, ulong, TestSubprocessFlags)

[Version("2.80")]
public static void TestTrapSubprocessWithEnvp(string? testPath, string[]? envp, ulong usecTimeout, TestSubprocessFlags testFlags)

Parameters

testPath string
envp string[]
usecTimeout ulong
testFlags TestSubprocessFlags

ThreadErrorQuark()

public static Quark ThreadErrorQuark()

Returns

Quark

ThreadExit(nint)

public static void ThreadExit(nint retval)

Parameters

retval nint

ThreadForeach(Func)

[Version("2.10")]
public static void ThreadForeach(Func threadFunc)

Parameters

threadFunc Func

ThreadGetInitialized()

[Version("2.20")]
public static bool ThreadGetInitialized()

Returns

bool

ThreadInit(nint)

public static void ThreadInit(nint vtable)

Parameters

vtable nint

ThreadInitWithErrorcheckMutexes(nint)

public static void ThreadInitWithErrorcheckMutexes(nint vtable)

Parameters

vtable nint

ThreadPoolGetMaxIdleTime()

[Version("2.10")]
public static uint ThreadPoolGetMaxIdleTime()

Returns

uint

ThreadPoolGetMaxUnusedThreads()

public static int ThreadPoolGetMaxUnusedThreads()

Returns

int

ThreadPoolGetNumUnusedThreads()

public static uint ThreadPoolGetNumUnusedThreads()

Returns

uint

ThreadPoolSetMaxIdleTime(uint)

[Version("2.10")]
public static void ThreadPoolSetMaxIdleTime(uint interval)

Parameters

interval uint

ThreadPoolSetMaxUnusedThreads(int)

public static void ThreadPoolSetMaxUnusedThreads(int maxThreads)

Parameters

maxThreads int

ThreadPoolStopUnusedThreads()

public static void ThreadPoolStopUnusedThreads()

ThreadSelf()

public static Thread ThreadSelf()

Returns

Thread

ThreadYield()

public static void ThreadYield()

TimeValFromIso8601(string, out TimeVal)

[Version("2.12")]
public static bool TimeValFromIso8601(string isoDate, out TimeVal time)

Parameters

isoDate string
time TimeVal

Returns

bool

TimeoutAdd(int, uint, SourceFunc)

public static uint TimeoutAdd(int priority, uint interval, SourceFunc function)

Parameters

priority int
interval uint
function SourceFunc

Returns

uint

TimeoutAddSeconds(int, uint, SourceFunc)

[Version("2.14")]
public static uint TimeoutAddSeconds(int priority, uint interval, SourceFunc function)

Parameters

priority int
interval uint
function SourceFunc

Returns

uint

TimeoutSourceNew(uint)

public static Source TimeoutSourceNew(uint interval)

Parameters

interval uint

Returns

Source

TimeoutSourceNewSeconds(uint)

[Version("2.14")]
public static Source TimeoutSourceNewSeconds(uint interval)

Parameters

interval uint

Returns

Source

TrashStackHeight(TrashStack)

public static uint TrashStackHeight(TrashStack stackP)

Parameters

stackP TrashStack

Returns

uint

TrashStackPeek(TrashStack)

public static nint TrashStackPeek(TrashStack stackP)

Parameters

stackP TrashStack

Returns

nint

TrashStackPop(TrashStack)

public static nint TrashStackPop(TrashStack stackP)

Parameters

stackP TrashStack

Returns

nint

TrashStackPush(TrashStack, nint)

public static void TrashStackPush(TrashStack stackP, nint dataP)

Parameters

stackP TrashStack
dataP nint

TryMalloc(nuint)

public static nint TryMalloc(nuint nBytes)

Parameters

nBytes nuint

Returns

nint

TryMalloc0(nuint)

[Version("2.8")]
public static nint TryMalloc0(nuint nBytes)

Parameters

nBytes nuint

Returns

nint

TryMalloc0N(nuint, nuint)

[Version("2.24")]
public static nint TryMalloc0N(nuint nBlocks, nuint nBlockBytes)

Parameters

nBlocks nuint
nBlockBytes nuint

Returns

nint

TryMallocN(nuint, nuint)

[Version("2.24")]
public static nint TryMallocN(nuint nBlocks, nuint nBlockBytes)

Parameters

nBlocks nuint
nBlockBytes nuint

Returns

nint

TryRealloc(nint, nuint)

public static nint TryRealloc(nint mem, nuint nBytes)

Parameters

mem nint
nBytes nuint

Returns

nint

TryReallocN(nint, nuint, nuint)

[Version("2.24")]
public static nint TryReallocN(nint mem, nuint nBlocks, nuint nBlockBytes)

Parameters

mem nint
nBlocks nuint
nBlockBytes nuint

Returns

nint

UnicharBreakType(uint)

public static UnicodeBreakType UnicharBreakType(uint c)

Parameters

c uint

Returns

UnicodeBreakType

UnicharCombiningClass(uint)

[Version("2.14")]
public static int UnicharCombiningClass(uint uc)

Parameters

uc uint

Returns

int

UnicharCompose(uint, uint, out uint)

[Version("2.30")]
public static bool UnicharCompose(uint a, uint b, out uint ch)

Parameters

a uint
b uint
ch uint

Returns

bool

UnicharDecompose(uint, out uint, out uint)

[Version("2.30")]
public static bool UnicharDecompose(uint ch, out uint a, out uint b)

Parameters

ch uint
a uint
b uint

Returns

bool

UnicharDigitValue(uint)

public static int UnicharDigitValue(uint c)

Parameters

c uint

Returns

int

UnicharFullyDecompose(uint, bool, out uint, nuint)

[Version("2.30")]
public static nuint UnicharFullyDecompose(uint ch, bool compat, out uint result, nuint resultLen)

Parameters

ch uint
compat bool
result uint
resultLen nuint

Returns

nuint

UnicharGetMirrorChar(uint, out uint)

[Version("2.4")]
public static bool UnicharGetMirrorChar(uint ch, out uint mirroredCh)

Parameters

ch uint
mirroredCh uint

Returns

bool

UnicharGetScript(uint)

[Version("2.14")]
public static UnicodeScript UnicharGetScript(uint ch)

Parameters

ch uint

Returns

UnicodeScript

UnicharIsalnum(uint)

public static bool UnicharIsalnum(uint c)

Parameters

c uint

Returns

bool

UnicharIsalpha(uint)

public static bool UnicharIsalpha(uint c)

Parameters

c uint

Returns

bool

UnicharIscntrl(uint)

public static bool UnicharIscntrl(uint c)

Parameters

c uint

Returns

bool

UnicharIsdefined(uint)

public static bool UnicharIsdefined(uint c)

Parameters

c uint

Returns

bool

UnicharIsdigit(uint)

public static bool UnicharIsdigit(uint c)

Parameters

c uint

Returns

bool

UnicharIsgraph(uint)

public static bool UnicharIsgraph(uint c)

Parameters

c uint

Returns

bool

UnicharIslower(uint)

public static bool UnicharIslower(uint c)

Parameters

c uint

Returns

bool

UnicharIsmark(uint)

[Version("2.14")]
public static bool UnicharIsmark(uint c)

Parameters

c uint

Returns

bool

UnicharIsprint(uint)

public static bool UnicharIsprint(uint c)

Parameters

c uint

Returns

bool

UnicharIspunct(uint)

public static bool UnicharIspunct(uint c)

Parameters

c uint

Returns

bool

UnicharIsspace(uint)

public static bool UnicharIsspace(uint c)

Parameters

c uint

Returns

bool

UnicharIstitle(uint)

public static bool UnicharIstitle(uint c)

Parameters

c uint

Returns

bool

UnicharIsupper(uint)

public static bool UnicharIsupper(uint c)

Parameters

c uint

Returns

bool

UnicharIswide(uint)

public static bool UnicharIswide(uint c)

Parameters

c uint

Returns

bool

UnicharIswideCjk(uint)

[Version("2.12")]
public static bool UnicharIswideCjk(uint c)

Parameters

c uint

Returns

bool

UnicharIsxdigit(uint)

public static bool UnicharIsxdigit(uint c)

Parameters

c uint

Returns

bool

UnicharIszerowidth(uint)

[Version("2.14")]
public static bool UnicharIszerowidth(uint c)

Parameters

c uint

Returns

bool

UnicharTolower(uint)

public static uint UnicharTolower(uint c)

Parameters

c uint

Returns

uint

UnicharTotitle(uint)

public static uint UnicharTotitle(uint c)

Parameters

c uint

Returns

uint

UnicharToupper(uint)

public static uint UnicharToupper(uint c)

Parameters

c uint

Returns

uint

UnicharType(uint)

public static UnicodeType UnicharType(uint c)

Parameters

c uint

Returns

UnicodeType

UnicharValidate(uint)

public static bool UnicharValidate(uint ch)

Parameters

ch uint

Returns

bool

UnicharXdigitValue(uint)

public static int UnicharXdigitValue(uint c)

Parameters

c uint

Returns

int

UnicodeCanonicalDecomposition(uint, ref nuint)

public static nint UnicodeCanonicalDecomposition(uint ch, ref nuint resultLen)

Parameters

ch uint
resultLen nuint

Returns

nint

UnicodeCanonicalOrdering(Span<uint>)

public static void UnicodeCanonicalOrdering(Span<uint> @string)

Parameters

string Span<uint>

UnicodeScriptFromIso15924(uint)

[Version("2.30")]
public static UnicodeScript UnicodeScriptFromIso15924(uint iso15924)

Parameters

iso15924 uint

Returns

UnicodeScript

UnicodeScriptToIso15924(UnicodeScript)

[Version("2.30")]
public static uint UnicodeScriptToIso15924(UnicodeScript script)

Parameters

script UnicodeScript

Returns

uint

UnixErrorQuark()

public static Quark UnixErrorQuark()

Returns

Quark

UnixFdAddFull(int, int, IOCondition, UnixFDSourceFunc)

[Version("2.36")]
public static uint UnixFdAddFull(int priority, int fd, IOCondition condition, UnixFDSourceFunc function)

Parameters

priority int
fd int
condition IOCondition
function UnixFDSourceFunc

Returns

uint

UnixFdSourceNew(int, IOCondition)

[Version("2.36")]
public static Source UnixFdSourceNew(int fd, IOCondition condition)

Parameters

fd int
condition IOCondition

Returns

Source

UnixSetFdNonblocking(int, bool)

[Version("2.30")]
public static bool UnixSetFdNonblocking(int fd, bool nonblock)

Parameters

fd int
nonblock bool

Returns

bool

UnixSignalAdd(int, int, SourceFunc)

[Version("2.30")]
public static uint UnixSignalAdd(int priority, int signum, SourceFunc handler)

Parameters

priority int
signum int
handler SourceFunc

Returns

uint

UnixSignalSourceNew(int)

[Version("2.30")]
public static Source UnixSignalSourceNew(int signum)

Parameters

signum int

Returns

Source
[Version("2.6")]
public static int Unlink(string filename)

Parameters

filename string

Returns

int

Unsetenv(string)

[Version("2.4")]
public static void Unsetenv(string variable)

Parameters

variable string

UriBuild(UriFlags, string, string?, string?, int, string, string?, string?)

[Version("2.66")]
public static Uri UriBuild(UriFlags flags, string scheme, string? userinfo, string? host, int port, string path, string? query, string? fragment)

Parameters

flags UriFlags
scheme string
userinfo string
host string
port int
path string
query string
fragment string

Returns

Uri

UriBuildWithUser(UriFlags, string, string?, string?, string?, string?, int, string, string?, string?)

[Version("2.66")]
public static Uri UriBuildWithUser(UriFlags flags, string scheme, string? user, string? password, string? authParams, string? host, int port, string path, string? query, string? fragment)

Parameters

flags UriFlags
scheme string
user string
password string
authParams string
host string
port int
path string
query string
fragment string

Returns

Uri

UriErrorQuark()

public static Quark UriErrorQuark()

Returns

Quark

UriEscapeBytes(Span<byte>, string?)

[Version("2.66")]
public static string UriEscapeBytes(Span<byte> unescaped, string? reservedCharsAllowed)

Parameters

unescaped Span<byte>
reservedCharsAllowed string

Returns

string

UriEscapeString(string, string?, bool)

[Version("2.16")]
public static string UriEscapeString(string unescaped, string? reservedCharsAllowed, bool allowUtf8)

Parameters

unescaped string
reservedCharsAllowed string
allowUtf8 bool

Returns

string

UriIsValid(string, UriFlags)

[Version("2.66")]
public static bool UriIsValid(string uriString, UriFlags flags)

Parameters

uriString string
flags UriFlags

Returns

bool

UriJoin(UriFlags, string?, string?, string?, int, string, string?, string?)

[Version("2.66")]
public static string UriJoin(UriFlags flags, string? scheme, string? userinfo, string? host, int port, string path, string? query, string? fragment)

Parameters

flags UriFlags
scheme string
userinfo string
host string
port int
path string
query string
fragment string

Returns

string

UriJoinWithUser(UriFlags, string?, string?, string?, string?, string?, int, string, string?, string?)

[Version("2.66")]
public static string UriJoinWithUser(UriFlags flags, string? scheme, string? user, string? password, string? authParams, string? host, int port, string path, string? query, string? fragment)

Parameters

flags UriFlags
scheme string
user string
password string
authParams string
host string
port int
path string
query string
fragment string

Returns

string

UriListExtractUris(string)

[Version("2.6")]
public static string[] UriListExtractUris(string uriList)

Parameters

uriList string

Returns

string[]

UriParse(string, UriFlags)

[Version("2.66")]
public static Uri UriParse(string uriString, UriFlags flags)

Parameters

uriString string
flags UriFlags

Returns

Uri

UriParseParams(string, nint, string, UriParamsFlags)

[Version("2.66")]
public static HashTable UriParseParams(string @params, nint length, string separators, UriParamsFlags flags)

Parameters

params string
length nint
separators string
flags UriParamsFlags

Returns

HashTable

UriParseScheme(string)

[Version("2.16")]
public static string? UriParseScheme(string uri)

Parameters

uri string

Returns

string

UriPeekScheme(string)

[Version("2.66")]
public static string? UriPeekScheme(string uri)

Parameters

uri string

Returns

string

UriResolveRelative(string?, string, UriFlags)

[Version("2.66")]
public static string UriResolveRelative(string? baseUriString, string uriRef, UriFlags flags)

Parameters

baseUriString string
uriRef string
flags UriFlags

Returns

string

UriSplit(string, UriFlags, out string?, out string?, out string?, out int, out string, out string?, out string?)

[Version("2.66")]
public static bool UriSplit(string uriRef, UriFlags flags, out string? scheme, out string? userinfo, out string? host, out int port, out string path, out string? query, out string? fragment)

Parameters

uriRef string
flags UriFlags
scheme string
userinfo string
host string
port int
path string
query string
fragment string

Returns

bool

UriSplitNetwork(string, UriFlags, out string?, out string?, out int)

[Version("2.66")]
public static bool UriSplitNetwork(string uriString, UriFlags flags, out string? scheme, out string? host, out int port)

Parameters

uriString string
flags UriFlags
scheme string
host string
port int

Returns

bool

UriSplitWithUser(string, UriFlags, out string?, out string?, out string?, out string?, out string?, out int, out string, out string?, out string?)

[Version("2.66")]
public static bool UriSplitWithUser(string uriRef, UriFlags flags, out string? scheme, out string? user, out string? password, out string? authParams, out string? host, out int port, out string path, out string? query, out string? fragment)

Parameters

uriRef string
flags UriFlags
scheme string
user string
password string
authParams string
host string
port int
path string
query string
fragment string

Returns

bool

UriUnescapeBytes(string, nint, string?)

[Version("2.66")]
public static Bytes UriUnescapeBytes(string escapedString, nint length, string? illegalCharacters)

Parameters

escapedString string
length nint
illegalCharacters string

Returns

Bytes

UriUnescapeSegment(string?, string?, string?)

[Version("2.16")]
public static string? UriUnescapeSegment(string? escapedString, string? escapedStringEnd, string? illegalCharacters)

Parameters

escapedString string
escapedStringEnd string
illegalCharacters string

Returns

string

UriUnescapeString(string, string?)

[Version("2.16")]
public static string? UriUnescapeString(string escapedString, string? illegalCharacters)

Parameters

escapedString string
illegalCharacters string

Returns

string

Usleep(ulong)

public static void Usleep(ulong microseconds)

Parameters

microseconds ulong

Utf8Casefold(string, nint)

public static string Utf8Casefold(string str, nint len)

Parameters

str string
len nint

Returns

string

Utf8Collate(string, string)

public static int Utf8Collate(string str1, string str2)

Parameters

str1 string
str2 string

Returns

int

Utf8CollateKey(string, nint)

public static string Utf8CollateKey(string str, nint len)

Parameters

str string
len nint

Returns

string

Utf8CollateKeyForFilename(string, nint)

[Version("2.8")]
public static string Utf8CollateKeyForFilename(string str, nint len)

Parameters

str string
len nint

Returns

string

Utf8FindNextChar(string, string?)

public static string? Utf8FindNextChar(string p, string? end)

Parameters

p string
end string

Returns

string

Utf8FindPrevChar(string, string)

public static string? Utf8FindPrevChar(string str, string p)

Parameters

str string
p string

Returns

string

Utf8GetChar(string)

public static uint Utf8GetChar(string p)

Parameters

p string

Returns

uint

Utf8GetCharValidated(string, nint)

public static uint Utf8GetCharValidated(string p, nint maxLen)

Parameters

p string
maxLen nint

Returns

uint

Utf8MakeValid(string, nint)

[Version("2.52")]
public static string Utf8MakeValid(string str, nint len)

Parameters

str string
len nint

Returns

string

Utf8Normalize(string, nint, NormalizeMode)

public static string? Utf8Normalize(string str, nint len, NormalizeMode mode)

Parameters

str string
len nint
mode NormalizeMode

Returns

string

Utf8OffsetToPointer(string, long)

public static string Utf8OffsetToPointer(string str, long offset)

Parameters

str string
offset long

Returns

string

Utf8PointerToOffset(string, string)

public static long Utf8PointerToOffset(string str, string pos)

Parameters

str string
pos string

Returns

long

Utf8PrevChar(string)

public static string Utf8PrevChar(string p)

Parameters

p string

Returns

string

Utf8Strchr(string, nint, uint)

public static string? Utf8Strchr(string p, nint len, uint c)

Parameters

p string
len nint
c uint

Returns

string

Utf8Strdown(string, nint)

public static string Utf8Strdown(string str, nint len)

Parameters

str string
len nint

Returns

string

Utf8Strlen(string, nint)

public static long Utf8Strlen(string p, nint max)

Parameters

p string
max nint

Returns

long

Utf8Strncpy(string, string, nuint)

public static string Utf8Strncpy(string dest, string src, nuint n)

Parameters

dest string
src string
n nuint

Returns

string

Utf8Strrchr(string, nint, uint)

public static string? Utf8Strrchr(string p, nint len, uint c)

Parameters

p string
len nint
c uint

Returns

string

Utf8Strreverse(string, nint)

[Version("2.2")]
public static string Utf8Strreverse(string str, nint len)

Parameters

str string
len nint

Returns

string

Utf8Strup(string, nint)

public static string Utf8Strup(string str, nint len)

Parameters

str string
len nint

Returns

string

Utf8Substring(string, long, long)

[Version("2.30")]
public static string Utf8Substring(string str, long startPos, long endPos)

Parameters

str string
startPos long
endPos long

Returns

string

Utf8TruncateMiddle(string, nuint)

[Version("2.78")]
public static string Utf8TruncateMiddle(string @string, nuint truncateLength)

Parameters

string string
truncateLength nuint

Returns

string

Utf8Validate(Span<byte>, out string)

public static bool Utf8Validate(Span<byte> str, out string end)

Parameters

str Span<byte>
end string

Returns

bool

Utf8ValidateLen(Span<byte>, out string)

[Version("2.60")]
public static bool Utf8ValidateLen(Span<byte> str, out string end)

Parameters

str Span<byte>
end string

Returns

bool

UuidStringIsValid(string)

[Version("2.52")]
public static bool UuidStringIsValid(string str)

Parameters

str string

Returns

bool

UuidStringRandom()

[Version("2.52")]
public static string UuidStringRandom()

Returns

string

VariantGetGtype()

public static Type VariantGetGtype()

Returns

Type

VariantIsObjectPath(string)

[Version("2.24")]
public static bool VariantIsObjectPath(string @string)

Parameters

string string

Returns

bool

VariantIsSignature(string)

[Version("2.24")]
public static bool VariantIsSignature(string @string)

Parameters

string string

Returns

bool

VariantParse(VariantType?, string, string?, string?)

public static Variant VariantParse(VariantType? type, string text, string? limit, string? endptr)

Parameters

type VariantType
text string
limit string
endptr string

Returns

Variant

VariantParseErrorPrintContext(Error, string)

[Version("2.40")]
public static string VariantParseErrorPrintContext(Error error, string sourceStr)

Parameters

error Error
sourceStr string

Returns

string

VariantParseErrorQuark()

public static Quark VariantParseErrorQuark()

Returns

Quark

VariantParserGetErrorQuark()

public static Quark VariantParserGetErrorQuark()

Returns

Quark

VariantTypeChecked(string)

public static VariantType VariantTypeChecked(string typeString)

Parameters

typeString string

Returns

VariantType

VariantTypeStringGetDepth(string)

public static nuint VariantTypeStringGetDepth(string typeString)

Parameters

typeString string

Returns

nuint

VariantTypeStringIsValid(string)

public static bool VariantTypeStringIsValid(string typeString)

Parameters

typeString string

Returns

bool

VariantTypeStringScan(string, string?, out string)

[Version("2.24")]
public static bool VariantTypeStringScan(string @string, string? limit, out string endptr)

Parameters

string string
limit string
endptr string

Returns

bool

Vasprintf(out string, string, nint)

[Version("2.4")]
public static int Vasprintf(out string @string, string format, nint args)

Parameters

string string
format string
args nint

Returns

int

Vfprintf(nint, string, nint)

[Version("2.2")]
public static int Vfprintf(nint file, string format, nint args)

Parameters

file nint
format string
args nint

Returns

int

Vprintf(string, nint)

[Version("2.2")]
public static int Vprintf(string format, nint args)

Parameters

format string
args nint

Returns

int

Vsnprintf(string, ulong, string, nint)

public static int Vsnprintf(string @string, ulong n, string format, nint args)

Parameters

string string
n ulong
format string
args nint

Returns

int

Vsprintf(string, string, nint)

[Version("2.2")]
public static int Vsprintf(string @string, string format, nint args)

Parameters

string string
format string
args nint

Returns

int

WarnMessage(string?, string, int, string, string?)

public static void WarnMessage(string? domain, string file, int line, string func, string? warnexpr)

Parameters

domain string
file string
line int
func string
warnexpr string

Win32CheckWindowsVersion(int, int, int, Win32OSType)

[Version("2.44")]
public static bool Win32CheckWindowsVersion(int major, int minor, int spver, Win32OSType osType)

Parameters

major int
minor int
spver int
osType Win32OSType

Returns

bool

Win32ErrorMessage(int)

public static string Win32ErrorMessage(int error)

Parameters

error int

Returns

string

Win32Ftruncate(int, uint)

public static int Win32Ftruncate(int f, uint size)

Parameters

f int
size uint

Returns

int

Win32GetCommandLine()

[Version("2.40")]
public static string[] Win32GetCommandLine()

Returns

string[]

Win32GetPackageInstallationDirectory(string?, string?)

public static string Win32GetPackageInstallationDirectory(string? package, string? dllName)

Parameters

package string
dllName string

Returns

string

Win32GetPackageInstallationDirectoryOfModule(nint)

[Version("2.16")]
public static string Win32GetPackageInstallationDirectoryOfModule(nint hmodule)

Parameters

hmodule nint

Returns

string

Win32GetPackageInstallationSubdirectory(string?, string?, string)

public static string Win32GetPackageInstallationSubdirectory(string? package, string? dllName, string subdir)

Parameters

package string
dllName string
subdir string

Returns

string

Win32GetSystemDataDirsForModule(nint)

public static string[] Win32GetSystemDataDirsForModule(nint addressOfFunction)

Parameters

addressOfFunction nint

Returns

string[]

Win32GetWindowsVersion()

public static uint Win32GetWindowsVersion()

Returns

uint

Win32Getlocale()

public static string Win32Getlocale()

Returns

string

Win32LocaleFilenameFromUtf8(string)

[Version("2.8")]
public static string Win32LocaleFilenameFromUtf8(string utf8filename)

Parameters

utf8filename string

Returns

string