DataInputStream
Object Hierarchy:
Description:
public class DataInputStream :
BufferedInputStream,
Seekable
Data input stream implements InputStream and includes functions for reading
structured data directly from a binary input stream.
Content:
Properties:
Creation methods:
Methods:
- public DataStreamByteOrder get_byte_order ()
Gets the byte order for the data input stream.
- public DataStreamNewlineType get_newline_type ()
Gets the current newline type for the this
.
- public uint8 read_byte (Cancellable? cancellable = null) throws IOError
Reads an unsigned 8-bit/1-byte value from
this.
- public int16 read_int16 (Cancellable? cancellable = null) throws IOError
Reads a 16-bit/2-byte value from this
.
- public int32 read_int32 (Cancellable? cancellable = null) throws IOError
Reads a signed 32-bit/4-byte value from
this.
- public int64 read_int64 (Cancellable? cancellable = null) throws IOError
Reads a 64-bit/8-byte value from this
.
- public string? read_line (out size_t length = null, Cancellable? cancellable = null) throws IOError
Reads a line from the data input stream.
- public async string? read_line_async (int io_priority = DEFAULT, Cancellable? cancellable = null, out size_t length = null) throws IOError, IOError
- public string? read_line_utf8 (out size_t length, Cancellable? cancellable = null) throws IOError
Reads a UTF-8 encoded line from the data input stream.
- public async string? read_line_utf8_async (int io_priority = DEFAULT, Cancellable? cancellable = null, out size_t length) throws IOError, IOError
- public uint16 read_uint16 (Cancellable? cancellable = null) throws IOError
Reads an unsigned 16-bit/2-byte value from
this.
- public uint32 read_uint32 (Cancellable? cancellable = null) throws IOError
Reads an unsigned 32-bit/4-byte value from
this.
- public uint64 read_uint64 (Cancellable? cancellable = null) throws IOError
Reads an unsigned 64-bit/8-byte value from
this.
- public string read_until (string stop_chars, out size_t length, Cancellable? cancellable = null) throws IOError
Reads a string from the data input stream, up to the first occurrence
of any of the stop characters.
- public async string read_until_async (string stop_chars, int io_priority = DEFAULT, Cancellable? cancellable = null, out size_t length) throws IOError, IOError
- public string read_upto (string stop_chars, ssize_t stop_chars_len, out size_t length, Cancellable? cancellable = null) throws IOError
Reads a string from the data input stream, up to the first occurrence
of any of the stop characters.
- public async string read_upto_async (string stop_chars, ssize_t stop_chars_len, int io_priority = DEFAULT, Cancellable? cancellable = null, out size_t length) throws IOError, IOError
- public void set_byte_order (DataStreamByteOrder order)
This function sets the byte order for the given
this.
- public void set_newline_type (DataStreamNewlineType type)
Sets the newline type for the this.
Inherited Members:
All known members inherited from class GLib.BufferedInputStream
All known members inherited from class GLib.FilterInputStream
All known members inherited from class GLib.InputStream
All known members inherited from class GLib.Object
All known members inherited from interface GLib.Seekable