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
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
IOChannelAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
ErrorFromErrno(int)
public static IOChannelError ErrorFromErrno(int en)
Parameters
en
int
Returns
ErrorQuark()
public static Quark ErrorQuark()
Returns
Flush()
public IOStatus Flush()
Returns
GetBufferCondition()
public IOCondition GetBufferCondition()
Returns
GetBufferSize()
public nuint GetBufferSize()
Returns
GetBuffered()
public bool GetBuffered()
Returns
GetCloseOnUnref()
public bool GetCloseOnUnref()
Returns
GetEncoding()
public string GetEncoding()
Returns
GetFlags()
public IOFlags GetFlags()
Returns
GetGType()
public static Type GetGType()
Returns
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
Init()
public void Init()
NewFile(string, string)
public static IOChannel NewFile(string filename, string mode)
Parameters
Returns
Read(string, nuint, ref nuint)
public IOError Read(string buf, nuint count, ref nuint bytesRead)
Parameters
Returns
ReadChars(Span<byte>, out nuint)
public IOStatus ReadChars(Span<byte> buf, out nuint bytesRead)
Parameters
Returns
ReadLine(out string, out nuint, out nuint)
public IOStatus ReadLine(out string strReturn, out nuint length, out nuint terminatorPos)
Parameters
Returns
ReadLineString(String, ref nuint)
public IOStatus ReadLineString(String buffer, ref nuint terminatorPos)
Parameters
Returns
ReadUnichar(out uint)
public IOStatus ReadUnichar(out uint thechar)
Parameters
thechar
uint
Returns
Ref()
public IOChannel Ref()
Returns
Seek(long, SeekType)
public IOError Seek(long offset, SeekType type)
Parameters
Returns
SeekPosition(long, SeekType)
public IOStatus SeekPosition(long offset, SeekType type)
Parameters
Returns
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
SetFlags(IOFlags)
public IOStatus SetFlags(IOFlags flags)
Parameters
flags
IOFlags
Returns
SetLineTerm(string?, int)
public void SetLineTerm(string? lineTerm, int length)
Parameters
Shutdown(bool)
public IOStatus Shutdown(bool flush)
Parameters
flush
bool
Returns
UnixGetFd()
public int UnixGetFd()
Returns
UnixNew(int)
public static IOChannel UnixNew(int fd)
Parameters
fd
int
Returns
Unref()
public void Unref()
Write(string, nuint, ref nuint)
public IOError Write(string buf, nuint count, ref nuint bytesWritten)
Parameters
Returns
WriteUnichar(uint)
public IOStatus WriteUnichar(uint thechar)
Parameters
thechar
uint