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 IntPtr AlignedAlloc(nuint nBlocks, nuint nBlockBytes, nuint alignment)

Parameters

nBlocks nuint
nBlockBytes nuint
alignment nuint

Returns

IntPtr

AlignedAlloc0(nuint, nuint, nuint)

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

Parameters

nBlocks nuint
nBlockBytes nuint
alignment nuint

Returns

IntPtr

AlignedFree(IntPtr)

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

Parameters

mem IntPtr

AlignedFreeSized(IntPtr, nuint, nuint)

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

Parameters

mem IntPtr
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, long)

public static string AsciiStrdown(string str, long len)

Parameters

str string
len long

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, long)

public static string AsciiStrup(string str, long len)

Parameters

str string
len long

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

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(IntPtr, nuint)

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

Parameters

atomic IntPtr
val nuint

Returns

nuint

AtomicPointerCompareAndExchange(IntPtr, IntPtr, IntPtr)

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

Parameters

atomic IntPtr
oldval IntPtr
newval IntPtr

Returns

bool

AtomicPointerCompareAndExchangeFull(IntPtr, IntPtr, IntPtr, out IntPtr)

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

Parameters

atomic IntPtr
oldval IntPtr
newval IntPtr
preval IntPtr

Returns

bool

AtomicPointerExchange(IntPtr, IntPtr)

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

Parameters

atomic IntPtr
newval IntPtr

Returns

IntPtr

AtomicPointerGet(IntPtr)

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

Parameters

atomic IntPtr

Returns

IntPtr

AtomicPointerOr(IntPtr, nuint)

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

Parameters

atomic IntPtr
val nuint

Returns

nuint

AtomicPointerSet(IntPtr, IntPtr)

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

Parameters

atomic IntPtr
newval IntPtr

AtomicPointerXor(IntPtr, nuint)

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

Parameters

atomic IntPtr
val nuint

Returns

nuint

AtomicRcBoxAcquire(IntPtr)

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

Parameters

memBlock IntPtr

Returns

IntPtr

AtomicRcBoxAlloc(nuint)

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

Parameters

blockSize nuint

Returns

IntPtr

AtomicRcBoxAlloc0(nuint)

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

Parameters

blockSize nuint

Returns

IntPtr

AtomicRcBoxDup(nuint, IntPtr)

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

Parameters

blockSize nuint
memBlock IntPtr

Returns

IntPtr

AtomicRcBoxGetSize(IntPtr)

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

Parameters

memBlock IntPtr

Returns

nuint

AtomicRcBoxRelease(IntPtr)

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

Parameters

memBlock IntPtr

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, IntPtr)

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

Parameters

firstElement string
args IntPtr

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 long ChecksumTypeGetLength(ChecksumType checksumType)

Parameters

checksumType ChecksumType

Returns

long

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, long)

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

Parameters

checksumType ChecksumType
str string
length long

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, long)

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

Parameters

digestType ChecksumType
key Span<byte>
str string
length long

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 IntPtr DatalistGetData(Data datalist, string key)

Parameters

datalist Data
key string

Returns

IntPtr

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 IntPtr DatalistIdDupData(Data datalist, Quark keyId, DuplicateFunc? dupFunc)

Parameters

datalist Data
keyId Quark
dupFunc DuplicateFunc

Returns

IntPtr

DatalistIdGetData(Data, Quark)

public static IntPtr DatalistIdGetData(Data datalist, Quark keyId)

Parameters

datalist Data
keyId Quark

Returns

IntPtr

DatalistIdRemoveNoNotify(Data, Quark)

public static IntPtr DatalistIdRemoveNoNotify(Data datalist, Quark keyId)

Parameters

datalist Data
keyId Quark

Returns

IntPtr

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

public static void DatasetDestroy(IntPtr datasetLocation)

Parameters

datasetLocation IntPtr

DatasetForeach(IntPtr, DataForeachFunc)

public static void DatasetForeach(IntPtr datasetLocation, DataForeachFunc func)

Parameters

datasetLocation IntPtr
func DataForeachFunc

DatasetIdGetData(IntPtr, Quark)

public static IntPtr DatasetIdGetData(IntPtr datasetLocation, Quark keyId)

Parameters

datasetLocation IntPtr
keyId Quark

Returns

IntPtr

DatasetIdRemoveNoNotify(IntPtr, Quark)

public static IntPtr DatasetIdRemoveNoNotify(IntPtr datasetLocation, Quark keyId)

Parameters

datasetLocation IntPtr
keyId Quark

Returns

IntPtr

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

public static bool DirectEqual(IntPtr v1, IntPtr v2)

Parameters

v1 IntPtr
v2 IntPtr

Returns

bool

DirectHash(IntPtr)

public static uint DirectHash(IntPtr v)

Parameters

v IntPtr

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

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

Parameters

v1 IntPtr
v2 IntPtr

Returns

bool

DoubleHash(IntPtr)

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

Parameters

v IntPtr

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, long, out nuint, out nuint)

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

Parameters

utf8string string
len long
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, long, out nuint, out nuint)

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

Parameters

opsysstring string
len long
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 IntPtr Fopen(string filename, string mode)

Parameters

filename string
mode string

Returns

IntPtr

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

public static void Free(IntPtr mem)

Parameters

mem IntPtr

FreeSized(IntPtr, nuint)

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

Parameters

mem IntPtr
size nuint

Freopen(string, string, IntPtr)

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

Parameters

filename string
mode string
stream IntPtr

Returns

IntPtr

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, IntPtr)

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

Parameters

hashTable HashTable
key IntPtr

Returns

bool

HashTableContains(HashTable, IntPtr)

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

Parameters

hashTable HashTable
key IntPtr

Returns

bool

HashTableDestroy(HashTable)

public static void HashTableDestroy(HashTable hashTable)

Parameters

hashTable HashTable

HashTableFind(HashTable, HRFunc)

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

Parameters

hashTable HashTable
predicate HRFunc

Returns

IntPtr

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, IntPtr, IntPtr)

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

Parameters

hashTable HashTable
key IntPtr
value IntPtr

Returns

bool

HashTableLookup(HashTable, IntPtr)

public static IntPtr HashTableLookup(HashTable hashTable, IntPtr key)

Parameters

hashTable HashTable
key IntPtr

Returns

IntPtr

HashTableLookupExtended(HashTable, IntPtr, out IntPtr, out IntPtr)

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

Parameters

hashTable HashTable
lookupKey IntPtr
origKey IntPtr
value IntPtr

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, IntPtr)

public static bool HashTableRemove(HashTable hashTable, IntPtr key)

Parameters

hashTable HashTable
key IntPtr

Returns

bool

HashTableRemoveAll(HashTable)

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

Parameters

hashTable HashTable

HashTableReplace(HashTable, IntPtr, IntPtr)

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

Parameters

hashTable HashTable
key IntPtr
value IntPtr

Returns

bool

HashTableSize(HashTable)

public static uint HashTableSize(HashTable hashTable)

Parameters

hashTable HashTable

Returns

uint

HashTableSteal(HashTable, IntPtr)

public static bool HashTableSteal(HashTable hashTable, IntPtr key)

Parameters

hashTable HashTable
key IntPtr

Returns

bool

HashTableStealAll(HashTable)

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

Parameters

hashTable HashTable

HashTableStealExtended(HashTable, IntPtr, out IntPtr, out IntPtr)

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

Parameters

hashTable HashTable
lookupKey IntPtr
stolenKey IntPtr
stolenValue IntPtr

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

public static bool IdleRemoveByData(IntPtr data)

Parameters

data IntPtr

Returns

bool

IdleSourceNew()

public static Source IdleSourceNew()

Returns

Source

Int64Equal(IntPtr, IntPtr)

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

Parameters

v1 IntPtr
v2 IntPtr

Returns

bool

Int64Hash(IntPtr)

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

Parameters

v IntPtr

Returns

uint

IntEqual(IntPtr, IntPtr)

public static bool IntEqual(IntPtr v1, IntPtr v2)

Parameters

v1 IntPtr
v2 IntPtr

Returns

bool

IntHash(IntPtr)

public static uint IntHash(IntPtr v)

Parameters

v IntPtr

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?, IntPtr)

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

Parameters

logDomain string
logLevel LogLevelFlags
message string
unusedData IntPtr

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[], IntPtr)

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

Parameters

logLevel LogLevelFlags
fields LogField[]
userData IntPtr

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[], IntPtr)

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

Parameters

logLevel LogLevelFlags
fields LogField[]
userData IntPtr

Returns

LogWriterOutput

LogWriterStandardStreams(LogLevelFlags, LogField[], IntPtr)

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

Parameters

logLevel LogLevelFlags
fields LogField[]
userData IntPtr

Returns

LogWriterOutput

LogWriterSupportsColor(int)

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

Parameters

outputFd int

Returns

bool

LogWriterSyslog(LogLevelFlags, LogField[], IntPtr)

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

Parameters

logLevel LogLevelFlags
fields LogField[]
userData IntPtr

Returns

LogWriterOutput

Logv(string?, LogLevelFlags, string, IntPtr)

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

Parameters

logDomain string
logLevel LogLevelFlags
format string
args IntPtr

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 IntPtr Malloc(nuint nBytes)

Parameters

nBytes nuint

Returns

IntPtr

Malloc0(nuint)

public static IntPtr Malloc0(nuint nBytes)

Parameters

nBytes nuint

Returns

IntPtr

Malloc0N(nuint, nuint)

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

Parameters

nBlocks nuint
nBlockBytes nuint

Returns

IntPtr

MallocN(nuint, nuint)

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

Parameters

nBlocks nuint
nBlockBytes nuint

Returns

IntPtr

MarkupErrorQuark()

public static Quark MarkupErrorQuark()

Returns

Quark

MarkupEscapeText(string, long)

public static string MarkupEscapeText(string text, long length)

Parameters

text string
length long

Returns

string

MarkupVprintfEscaped(string, IntPtr)

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

Parameters

format string
args IntPtr

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(IntPtr, uint)

public static IntPtr Memdup(IntPtr mem, uint byteSize)

Parameters

mem IntPtr
byteSize uint

Returns

IntPtr

Memdup2(IntPtr, nuint)

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

Parameters

mem IntPtr
byteSize nuint

Returns

IntPtr

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

public static void NullifyPointer(IntPtr nullifyLocation)

Parameters

nullifyLocation IntPtr

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

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

Parameters

location IntPtr

Returns

bool

OnceInitEnterImpl(ref nuint)

public static bool OnceInitEnterImpl(ref nuint location)

Parameters

location nuint

Returns

bool

OnceInitEnterPointer(IntPtr)

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

Parameters

location IntPtr

Returns

bool

OnceInitLeave(ref IntPtr, nuint)

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

Parameters

location IntPtr
result nuint

OnceInitLeavePointer(IntPtr, IntPtr)

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

Parameters

location IntPtr
result IntPtr

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

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

Parameters

v1 IntPtr
v2 IntPtr

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(IntPtr, int)

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

Parameters

address IntPtr
lockBit int

PointerBitLockAndGet(IntPtr, uint, out UIntPtr)

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

Parameters

address IntPtr
lockBit uint
outPtr nuint

PointerBitLockMaskPtr(IntPtr, uint, bool, UIntPtr, IntPtr)

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

Parameters

ptr IntPtr
lockBit uint
set bool
preserveMask nuint
preservePtr IntPtr

Returns

IntPtr

PointerBitTrylock(IntPtr, int)

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

Parameters

address IntPtr
lockBit int

Returns

bool

PointerBitUnlock(IntPtr, int)

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

Parameters

address IntPtr
lockBit int

PointerBitUnlockAndSet(IntPtr, uint, IntPtr, UIntPtr)

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

Parameters

address IntPtr
lockBit uint
ptr IntPtr
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, IntPtr)

public static nuint PrintfStringUpperBound(string format, IntPtr args)

Parameters

format string
args IntPtr

Returns

nuint

QsortWithData(IntPtr, int, nuint, CompareDataFunc)

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

Parameters

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

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

Parameters

memBlock IntPtr

Returns

IntPtr

RcBoxAlloc(nuint)

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

Parameters

blockSize nuint

Returns

IntPtr

RcBoxAlloc0(nuint)

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

Parameters

blockSize nuint

Returns

IntPtr

RcBoxDup(nuint, IntPtr)

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

Parameters

blockSize nuint
memBlock IntPtr

Returns

IntPtr

RcBoxGetSize(IntPtr)

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

Parameters

memBlock IntPtr

Returns

nuint

RcBoxRelease(IntPtr)

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

Parameters

memBlock IntPtr

Realloc(IntPtr, nuint)

public static IntPtr Realloc(IntPtr mem, nuint nBytes)

Parameters

mem IntPtr
nBytes nuint

Returns

IntPtr

ReallocN(IntPtr, nuint, nuint)

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

Parameters

mem IntPtr
nBlocks nuint
nBlockBytes nuint

Returns

IntPtr

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, long)

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

Parameters

str string
len long

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 IntPtr SequenceGet(SequenceIter iter)

Parameters

iter SequenceIter

Returns

IntPtr

SequenceInsertBefore(SequenceIter, IntPtr)

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

Parameters

iter SequenceIter
data IntPtr

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, IntPtr)

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

Parameters

iter SequenceIter
data IntPtr

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 IntPtr SliceAlloc(nuint blockSize)

Parameters

blockSize nuint

Returns

IntPtr

SliceAlloc0(nuint)

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

Parameters

blockSize nuint

Returns

IntPtr

SliceCopy(nuint, IntPtr)

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

Parameters

blockSize nuint
memBlock IntPtr

Returns

IntPtr

SliceFree1(nuint, IntPtr)

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

Parameters

blockSize nuint
memBlock IntPtr

SliceFreeChainWithOffset(nuint, IntPtr, nuint)

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

Parameters

blockSize nuint
memChain IntPtr
nextOffset nuint

SliceGetConfig(SliceConfig)

public static long SliceGetConfig(SliceConfig ckey)

Parameters

ckey SliceConfig

Returns

long

SliceGetConfigState(SliceConfig, long, ref uint)

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

Parameters

ckey SliceConfig
address long
nValues uint

Returns

IntPtr

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, IntPtr)

public static bool SourceRemoveByFuncsUserData(SourceFuncs funcs, IntPtr userData)

Parameters

funcs SourceFuncs
userData IntPtr

Returns

bool

SourceRemoveByUserData(IntPtr)

public static bool SourceRemoveByUserData(IntPtr userData)

Parameters

userData IntPtr

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

public static bool StrEqual(IntPtr v1, IntPtr v2)

Parameters

v1 IntPtr
v2 IntPtr

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

public static uint StrHash(IntPtr v)

Parameters

v IntPtr

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, IntPtr)

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

Parameters

format string
args IntPtr

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, long, string)

public static string StrrstrLen(string haystack, long haystackLen, string needle)

Parameters

haystack string
haystackLen long
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, long, string)

public static string StrstrLen(string haystack, long haystackLen, string needle)

Parameters

haystack string
haystackLen long
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, IntPtr, TestDataFunc)

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

Parameters

testpath string
testData IntPtr
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(IntPtr)

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

Parameters

gfreePointer IntPtr

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

public static void ThreadExit(IntPtr retval)

Parameters

retval IntPtr

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

public static void ThreadInit(IntPtr vtable)

Parameters

vtable IntPtr

ThreadInitWithErrorcheckMutexes(IntPtr)

public static void ThreadInitWithErrorcheckMutexes(IntPtr vtable)

Parameters

vtable IntPtr

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 IntPtr TrashStackPeek(TrashStack stackP)

Parameters

stackP TrashStack

Returns

IntPtr

TrashStackPop(TrashStack)

public static IntPtr TrashStackPop(TrashStack stackP)

Parameters

stackP TrashStack

Returns

IntPtr

TrashStackPush(TrashStack, IntPtr)

public static void TrashStackPush(TrashStack stackP, IntPtr dataP)

Parameters

stackP TrashStack
dataP IntPtr

TryMalloc(nuint)

public static IntPtr TryMalloc(nuint nBytes)

Parameters

nBytes nuint

Returns

IntPtr

TryMalloc0(nuint)

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

Parameters

nBytes nuint

Returns

IntPtr

TryMalloc0N(nuint, nuint)

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

Parameters

nBlocks nuint
nBlockBytes nuint

Returns

IntPtr

TryMallocN(nuint, nuint)

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

Parameters

nBlocks nuint
nBlockBytes nuint

Returns

IntPtr

TryRealloc(IntPtr, nuint)

public static IntPtr TryRealloc(IntPtr mem, nuint nBytes)

Parameters

mem IntPtr
nBytes nuint

Returns

IntPtr

TryReallocN(IntPtr, nuint, nuint)

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

Parameters

mem IntPtr
nBlocks nuint
nBlockBytes nuint

Returns

IntPtr

Ucs4ToUtf16(Span<uint>, out long, out long)

public static IntPtr Ucs4ToUtf16(Span<uint> str, out long itemsRead, out long itemsWritten)

Parameters

str Span<uint>
itemsRead long
itemsWritten long

Returns

IntPtr

Ucs4ToUtf8(Span<uint>, out long, out long)

public static string Ucs4ToUtf8(Span<uint> str, out long itemsRead, out long itemsWritten)

Parameters

str Span<uint>
itemsRead long
itemsWritten long

Returns

string

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 IntPtr UnicodeCanonicalDecomposition(uint ch, ref nuint resultLen)

Parameters

ch uint
resultLen nuint

Returns

IntPtr

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, long, string, UriParamsFlags)

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

Parameters

params string
length long
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, long, string?)

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

Parameters

escapedString string
length long
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

Utf16ToUcs4(Span<ushort>, out long, out long)

public static IntPtr Utf16ToUcs4(Span<ushort> str, out long itemsRead, out long itemsWritten)

Parameters

str Span<ushort>
itemsRead long
itemsWritten long

Returns

IntPtr

Utf16ToUtf8(Span<ushort>, out long, out long)

public static string Utf16ToUtf8(Span<ushort> str, out long itemsRead, out long itemsWritten)

Parameters

str Span<ushort>
itemsRead long
itemsWritten long

Returns

string

Utf8Casefold(string, long)

public static string Utf8Casefold(string str, long len)

Parameters

str string
len long

Returns

string

Utf8Collate(string, string)

public static int Utf8Collate(string str1, string str2)

Parameters

str1 string
str2 string

Returns

int

Utf8CollateKey(string, long)

public static string Utf8CollateKey(string str, long len)

Parameters

str string
len long

Returns

string

Utf8CollateKeyForFilename(string, long)

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

Parameters

str string
len long

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, long)

public static uint Utf8GetCharValidated(string p, long maxLen)

Parameters

p string
maxLen long

Returns

uint

Utf8MakeValid(string, long)

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

Parameters

str string
len long

Returns

string

Utf8Normalize(string, long, NormalizeMode)

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

Parameters

str string
len long
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, long, uint)

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

Parameters

p string
len long
c uint

Returns

string

Utf8Strdown(string, long)

public static string Utf8Strdown(string str, long len)

Parameters

str string
len long

Returns

string

Utf8Strlen(string, long)

public static long Utf8Strlen(string p, long max)

Parameters

p string
max long

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, long, uint)

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

Parameters

p string
len long
c uint

Returns

string

Utf8Strreverse(string, long)

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

Parameters

str string
len long

Returns

string

Utf8Strup(string, long)

public static string Utf8Strup(string str, long len)

Parameters

str string
len long

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

Utf8ToUcs4(string, long, out long, out long)

public static IntPtr Utf8ToUcs4(string str, long len, out long itemsRead, out long itemsWritten)

Parameters

str string
len long
itemsRead long
itemsWritten long

Returns

IntPtr

Utf8ToUcs4Fast(string, long, out long)

public static IntPtr Utf8ToUcs4Fast(string str, long len, out long itemsWritten)

Parameters

str string
len long
itemsWritten long

Returns

IntPtr

Utf8ToUtf16(string, long, out long, out long)

public static IntPtr Utf8ToUtf16(string str, long len, out long itemsRead, out long itemsWritten)

Parameters

str string
len long
itemsRead long
itemsWritten long

Returns

IntPtr

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, IntPtr)

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

Parameters

string string
format string
args IntPtr

Returns

int

Vfprintf(IntPtr, string, IntPtr)

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

Parameters

file IntPtr
format string
args IntPtr

Returns

int

Vprintf(string, IntPtr)

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

Parameters

format string
args IntPtr

Returns

int

Vsnprintf(string, ulong, string, IntPtr)

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

Parameters

string string
n ulong
format string
args IntPtr

Returns

int

Vsprintf(string, string, IntPtr)

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

Parameters

string string
format string
args IntPtr

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

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

Parameters

hmodule IntPtr

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

public static string[] Win32GetSystemDataDirsForModule(IntPtr addressOfFunction)

Parameters

addressOfFunction IntPtr

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