Class DataInputStream
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class DataInputStream : BufferedInputStream, Seekable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
DataInputStream
- Implements
- Inherited Members
Constructors
DataInputStream(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public DataInputStream(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
DataInputStream(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected DataInputStream(CreationData data)
Parameters
dataCreationData
DataInputStream(DataInputStreamHandle)
protected DataInputStream(DataInputStreamHandle handle)
Parameters
handleDataInputStreamHandle
Fields
ByteOrderPropertyDefinition
public static readonly Property<DataStreamByteOrder, DataInputStream> ByteOrderPropertyDefinition
Field Value
NewlineTypePropertyDefinition
public static readonly Property<DataStreamNewlineType, DataInputStream> NewlineTypePropertyDefinition
Field Value
Properties
ByteOrder
public DataStreamByteOrder ByteOrder { get; set; }
Property Value
NewlineType
public DataStreamNewlineType NewlineType { get; set; }
Property Value
Methods
CanSeek()
public bool CanSeek()
Returns
CanTruncate()
public bool CanTruncate()
Returns
GetByteOrder()
public DataStreamByteOrder GetByteOrder()
Returns
GetGType()
public static Type GetGType()
Returns
GetNewlineType()
public DataStreamNewlineType GetNewlineType()
Returns
New(InputStream)
public static DataInputStream New(InputStream baseStream)
Parameters
baseStreamInputStream
Returns
NewFromPointer(nint, bool)
Creates a new managed DataInputStream instance for a given pointer.
public static DataInputStream NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new DataInputStream and sets the properties specified by the construct arguments.
public static DataInputStream NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ReadByte(Cancellable?)
public byte ReadByte(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
ReadInt16(Cancellable?)
public short ReadInt16(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
ReadInt32(Cancellable?)
public int ReadInt32(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
ReadInt64(Cancellable?)
public long ReadInt64(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
ReadLineFinishUtf8(AsyncResult, out nuint)
[Version("2.30")]
public string? ReadLineFinishUtf8(AsyncResult result, out nuint length)
Parameters
resultAsyncResultlengthnuint
Returns
ReadLineUtf8(out nuint, Cancellable?)
[Version("2.30")]
public string? ReadLineUtf8(out nuint length, Cancellable? cancellable)
Parameters
lengthnuintcancellableCancellable
Returns
ReadUint16(Cancellable?)
public ushort ReadUint16(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
ReadUint32(Cancellable?)
public uint ReadUint32(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
ReadUint64(Cancellable?)
public ulong ReadUint64(Cancellable? cancellable)
Parameters
cancellableCancellable
Returns
ReadUntil(string, out nuint, Cancellable?)
public string ReadUntil(string stopChars, out nuint length, Cancellable? cancellable)
Parameters
stopCharsstringlengthnuintcancellableCancellable
Returns
ReadUntilFinish(AsyncResult, out nuint)
[Version("2.20")]
public string ReadUntilFinish(AsyncResult result, out nuint length)
Parameters
resultAsyncResultlengthnuint
Returns
ReadUpto(string, nint, out nuint, Cancellable?)
[Version("2.26")]
public string ReadUpto(string stopChars, nint stopCharsLen, out nuint length, Cancellable? cancellable)
Parameters
stopCharsstringstopCharsLennintlengthnuintcancellableCancellable
Returns
ReadUptoFinish(AsyncResult, out nuint)
[Version("2.24")]
public string ReadUptoFinish(AsyncResult result, out nuint length)
Parameters
resultAsyncResultlengthnuint
Returns
Seek(long, SeekType, Cancellable?)
public bool Seek(long offset, SeekType type, Cancellable? cancellable)
Parameters
offsetlongtypeSeekTypecancellableCancellable
Returns
SetByteOrder(DataStreamByteOrder)
public void SetByteOrder(DataStreamByteOrder order)
Parameters
orderDataStreamByteOrder
SetNewlineType(DataStreamNewlineType)
public void SetNewlineType(DataStreamNewlineType type)
Parameters
Tell()
public long Tell()
Returns
Truncate(long, Cancellable?)
public bool Truncate(long offset, Cancellable? cancellable)
Parameters
offsetlongcancellableCancellable