Table of Contents

Class DataInputStream

Namespace
Gio
Assembly
Gio-2.0.dll
public class DataInputStream : BufferedInputStream, IObject, INotifyPropertyChanged, IDisposable, Seekable, IHandle, GTypeProvider
Inheritance
DataInputStream
Implements
Inherited Members

Constructors

DataInputStream(bool, params ConstructArgument[])

protected DataInputStream(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

DataInputStream(IntPtr, bool)

protected DataInputStream(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ByteOrderPropertyDefinition

public static readonly Property<DataStreamByteOrder, DataInputStream> ByteOrderPropertyDefinition

Field Value

Property<DataStreamByteOrder, DataInputStream>

NewlineTypePropertyDefinition

public static readonly Property<DataStreamNewlineType, DataInputStream> NewlineTypePropertyDefinition

Field Value

Property<DataStreamNewlineType, DataInputStream>

Properties

ByteOrder

public DataStreamByteOrder ByteOrder { get; set; }

Property Value

DataStreamByteOrder

NewlineType

public DataStreamNewlineType NewlineType { get; set; }

Property Value

DataStreamNewlineType

Methods

CanSeek()

public bool CanSeek()

Returns

bool

CanTruncate()

public bool CanTruncate()

Returns

bool

GetByteOrder()

public DataStreamByteOrder GetByteOrder()

Returns

DataStreamByteOrder

GetGType()

public static Type GetGType()

Returns

Type

GetNewlineType()

public DataStreamNewlineType GetNewlineType()

Returns

DataStreamNewlineType

New(InputStream)

public static DataInputStream New(InputStream baseStream)

Parameters

baseStream InputStream

Returns

DataInputStream

ReadByte(Cancellable?)

public byte ReadByte(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

byte

ReadInt16(Cancellable?)

public short ReadInt16(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

short

ReadInt32(Cancellable?)

public int ReadInt32(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

int

ReadInt64(Cancellable?)

public long ReadInt64(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

long

ReadLineFinishUtf8(AsyncResult, out nuint)

[Version("2.30")]
public string? ReadLineFinishUtf8(AsyncResult result, out nuint length)

Parameters

result AsyncResult
length nuint

Returns

string

ReadLineUtf8(out nuint, Cancellable?)

[Version("2.30")]
public string? ReadLineUtf8(out nuint length, Cancellable? cancellable)

Parameters

length nuint
cancellable Cancellable

Returns

string

ReadUint16(Cancellable?)

public ushort ReadUint16(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

ushort

ReadUint32(Cancellable?)

public uint ReadUint32(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

uint

ReadUint64(Cancellable?)

public ulong ReadUint64(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

ulong

ReadUntil(string, out nuint, Cancellable?)

public string ReadUntil(string stopChars, out nuint length, Cancellable? cancellable)

Parameters

stopChars string
length nuint
cancellable Cancellable

Returns

string

ReadUntilFinish(AsyncResult, out nuint)

[Version("2.20")]
public string ReadUntilFinish(AsyncResult result, out nuint length)

Parameters

result AsyncResult
length nuint

Returns

string

ReadUpto(string, long, out nuint, Cancellable?)

[Version("2.26")]
public string ReadUpto(string stopChars, long stopCharsLen, out nuint length, Cancellable? cancellable)

Parameters

stopChars string
stopCharsLen long
length nuint
cancellable Cancellable

Returns

string

ReadUptoFinish(AsyncResult, out nuint)

[Version("2.24")]
public string ReadUptoFinish(AsyncResult result, out nuint length)

Parameters

result AsyncResult
length nuint

Returns

string

Seek(long, SeekType, Cancellable?)

public bool Seek(long offset, SeekType type, Cancellable? cancellable)

Parameters

offset long
type SeekType
cancellable Cancellable

Returns

bool

SetByteOrder(DataStreamByteOrder)

public void SetByteOrder(DataStreamByteOrder order)

Parameters

order DataStreamByteOrder

SetNewlineType(DataStreamNewlineType)

public void SetNewlineType(DataStreamNewlineType type)

Parameters

type DataStreamNewlineType

Tell()

public long Tell()

Returns

long

Truncate(long, Cancellable?)

public bool Truncate(long offset, Cancellable? cancellable)

Parameters

offset long
cancellable Cancellable

Returns

bool