DataOutputStream

Data output stream implements GOutputStream and includes functions for writing data directly to an output stream.

Constructors

this
this(GDataOutputStream* gDataOutputStream)

Sets our main struct and passes it to the parent class

this
this(OutputStream baseStream)

Creates a new data output stream for base_stream.

Members

Functions

getByteOrder
GDataStreamByteOrder getByteOrder()

Gets the byte order for the stream.

getDataOutputStreamStruct
GDataOutputStream* getDataOutputStreamStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

putByte
int putByte(char data, Cancellable cancellable)

Puts a byte into the output stream.

putInt16
int putInt16(short data, Cancellable cancellable)

Puts a signed 16-bit integer into the output stream.

putInt32
int putInt32(int data, Cancellable cancellable)

Puts a signed 32-bit integer into the output stream.

putInt64
int putInt64(long data, Cancellable cancellable)

Puts a signed 64-bit integer into the stream.

putString
int putString(string str, Cancellable cancellable)

Puts a string into the output stream.

putUint16
int putUint16(ushort data, Cancellable cancellable)

Puts an unsigned 16-bit integer into the output stream.

putUint32
int putUint32(uint data, Cancellable cancellable)

Puts an unsigned 32-bit integer into the stream.

putUint64
int putUint64(ulong data, Cancellable cancellable)

Puts an unsigned 64-bit integer into the stream.

setByteOrder
void setByteOrder(GDataStreamByteOrder order)

Sets the byte order of the data output stream to order.

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

gDataOutputStream
GDataOutputStream* gDataOutputStream;

the main Gtk struct

Inherited Members

From FilterOutputStream

gFilterOutputStream
GFilterOutputStream* gFilterOutputStream;

the main Gtk struct

getFilterOutputStreamStruct
GFilterOutputStream* getFilterOutputStreamStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
getBaseStream
OutputStream getBaseStream()

Gets the base stream for the filter stream.

getCloseBaseStream
int getCloseBaseStream()

Returns whether the base stream will be closed when stream is closed.

setCloseBaseStream
void setCloseBaseStream(int closeBase)

Sets whether the base stream will be closed when stream is closed.

Meta