Table of Contents

Class IOChannel

Namespace
GLib
Assembly
GLib-2.0.dll
public sealed class IOChannel : BoxedRecord, IEquatable<IOChannel>
Inheritance
IOChannel
Implements
Inherited Members

Constructors

IOChannel()

public IOChannel()

IOChannel(IOChannelOwnedHandle)

public IOChannel(IOChannelOwnedHandle handle)

Parameters

handle IOChannelOwnedHandle

Properties

Handle

public IOChannelOwnedHandle Handle { get; }

Property Value

IOChannelOwnedHandle

Methods

Close()

public void Close()

Equals(IOChannel?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(IOChannel? other)

Parameters

other IOChannel

An object to compare with this object.

Returns

bool

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

Equals(object?)

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

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

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

ErrorFromErrno(int)

public static IOChannelError ErrorFromErrno(int en)

Parameters

en int

Returns

IOChannelError

ErrorQuark()

public static Quark ErrorQuark()

Returns

Quark

Flush()

public IOStatus Flush()

Returns

IOStatus

GetBufferCondition()

public IOCondition GetBufferCondition()

Returns

IOCondition

GetBufferSize()

public nuint GetBufferSize()

Returns

nuint

GetBuffered()

public bool GetBuffered()

Returns

bool

GetCloseOnUnref()

public bool GetCloseOnUnref()

Returns

bool

GetEncoding()

public string GetEncoding()

Returns

string

GetFlags()

public IOFlags GetFlags()

Returns

IOFlags

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetLineTerm(out int)

public string GetLineTerm(out int length)

Parameters

length int

Returns

string

Init()

public void Init()

NewFile(string, string)

public static IOChannel NewFile(string filename, string mode)

Parameters

filename string
mode string

Returns

IOChannel

Read(string, nuint, ref nuint)

public IOError Read(string buf, nuint count, ref nuint bytesRead)

Parameters

buf string
count nuint
bytesRead nuint

Returns

IOError

ReadChars(Span<byte>, out nuint)

public IOStatus ReadChars(Span<byte> buf, out nuint bytesRead)

Parameters

buf Span<byte>
bytesRead nuint

Returns

IOStatus

ReadLine(out string, out nuint, out nuint)

public IOStatus ReadLine(out string strReturn, out nuint length, out nuint terminatorPos)

Parameters

strReturn string
length nuint
terminatorPos nuint

Returns

IOStatus

ReadLineString(String, ref nuint)

public IOStatus ReadLineString(String buffer, ref nuint terminatorPos)

Parameters

buffer String
terminatorPos nuint

Returns

IOStatus

ReadUnichar(out uint)

public IOStatus ReadUnichar(out uint thechar)

Parameters

thechar uint

Returns

IOStatus

Ref()

public IOChannel Ref()

Returns

IOChannel

Seek(long, SeekType)

public IOError Seek(long offset, SeekType type)

Parameters

offset long
type SeekType

Returns

IOError

SeekPosition(long, SeekType)

public IOStatus SeekPosition(long offset, SeekType type)

Parameters

offset long
type SeekType

Returns

IOStatus

SetBufferSize(nuint)

public void SetBufferSize(nuint size)

Parameters

size nuint

SetBuffered(bool)

public void SetBuffered(bool buffered)

Parameters

buffered bool

SetCloseOnUnref(bool)

public void SetCloseOnUnref(bool doClose)

Parameters

doClose bool

SetEncoding(string?)

public IOStatus SetEncoding(string? encoding)

Parameters

encoding string

Returns

IOStatus

SetFlags(IOFlags)

public IOStatus SetFlags(IOFlags flags)

Parameters

flags IOFlags

Returns

IOStatus

SetLineTerm(string?, int)

public void SetLineTerm(string? lineTerm, int length)

Parameters

lineTerm string
length int

Shutdown(bool)

public IOStatus Shutdown(bool flush)

Parameters

flush bool

Returns

IOStatus

UnixGetFd()

public int UnixGetFd()

Returns

int

UnixNew(int)

public static IOChannel UnixNew(int fd)

Parameters

fd int

Returns

IOChannel

Unref()

public void Unref()

Write(string, nuint, ref nuint)

public IOError Write(string buf, nuint count, ref nuint bytesWritten)

Parameters

buf string
count nuint
bytesWritten nuint

Returns

IOError

WriteUnichar(uint)

public IOStatus WriteUnichar(uint thechar)

Parameters

thechar uint

Returns

IOStatus