1.27 <GDataOutputStream>

Class: <GDataOutputStream>

It derives from <GFilterOutputStream>.

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

Fields

parent-instance

Properties

Property: data-output-stream:byte-order self

Determines the byte ordering that is used when writing multi-byte entities (such as integers) to the stream.

Its value is a <GDataStreamByteOrder> (or, to set it, one of its symbols).

Set it with (set! (data-output-stream:byte-order self) value).

Procedures

Method: data-output-stream:get-byte-order self ⇒ %return
Method: get-byte-order self ⇒ %return

Gets the byte order for the stream.

self

Passed: a <GDataOutputStream>.

a <GDataOutputStream>.

%return

Returned: a <GDataStreamByteOrder>.

the <GDataStreamByteOrder> for the self.

Procedure: data-output-stream:new base-stream ⇒ %return

Creates a new data output stream for base-stream.

base-stream

Passed: a <GOutputStream>.

a <GOutputStream>.

%return

Returned: a <GDataOutputStream>.

<GDataOutputStream>.

Method: data-output-stream:put-byte? self data [cancellable] ⇒ %return
Method: put-byte? self data [cancellable] ⇒ %return

Puts a byte into the output stream.

self

Passed: a <GDataOutputStream>.

a <GDataOutputStream>.

data

Passed: an unsigned 8-bit integer, or a character.

a guchar.

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

%return

Returned: a boolean.

#t if data was successfully added to the self.

Method: data-output-stream:put-int16? self data [cancellable] ⇒ %return
Method: put-int16? self data [cancellable] ⇒ %return

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

self

Passed: a <GDataOutputStream>.

a <GDataOutputStream>.

data

Passed: a 16-bit integer.

a gint16.

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

%return

Returned: a boolean.

#t if data was successfully added to the self.

Method: data-output-stream:put-int32? self data [cancellable] ⇒ %return
Method: put-int32? self data [cancellable] ⇒ %return

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

self

Passed: a <GDataOutputStream>.

a <GDataOutputStream>.

data

Passed: a 32-bit integer.

a gint32.

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

%return

Returned: a boolean.

#t if data was successfully added to the self.

Method: data-output-stream:put-int64? self data [cancellable] ⇒ %return
Method: put-int64? self data [cancellable] ⇒ %return

Puts a signed 64-bit integer into the stream.

self

Passed: a <GDataOutputStream>.

a <GDataOutputStream>.

data

Passed: a 64-bit integer.

a gint64.

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

%return

Returned: a boolean.

#t if data was successfully added to the self.

Method: data-output-stream:put-string? self str [cancellable] ⇒ %return
Method: put-string? self str [cancellable] ⇒ %return

Puts a string into the output stream.

self

Passed: a <GDataOutputStream>.

a <GDataOutputStream>.

str

Passed: a string.

a string.

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

%return

Returned: a boolean.

#t if string was successfully added to the self.

Method: data-output-stream:put-uint16? self data [cancellable] ⇒ %return
Method: put-uint16? self data [cancellable] ⇒ %return

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

self

Passed: a <GDataOutputStream>.

a <GDataOutputStream>.

data

Passed: an unsigned 16-bit integer.

a guint16.

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

%return

Returned: a boolean.

#t if data was successfully added to the self.

Method: data-output-stream:put-uint32? self data [cancellable] ⇒ %return
Method: put-uint32? self data [cancellable] ⇒ %return

Puts an unsigned 32-bit integer into the stream.

self

Passed: a <GDataOutputStream>.

a <GDataOutputStream>.

data

Passed: an unsigned 32-bit integer.

a guint32.

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

%return

Returned: a boolean.

#t if data was successfully added to the self.

Method: data-output-stream:put-uint64? self data [cancellable] ⇒ %return
Method: put-uint64? self data [cancellable] ⇒ %return

Puts an unsigned 64-bit integer into the stream.

self

Passed: a <GDataOutputStream>.

a <GDataOutputStream>.

data

Passed: an unsigned 64-bit integer.

a guint64.

cancellable

Passed, or left out: a <GCancellable>, or #f.

optional <GCancellable> object, #f to ignore.

%return

Returned: a boolean.

#t if data was successfully added to the self.

Method: data-output-stream:set-byte-order self order
Method: set-byte-order self order

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

self

Passed: a <GDataOutputStream>.

a <GDataOutputStream>.

order

Passed: a <GDataStreamByteOrder>, or one of its symbols.

a <GDataStreamByteOrder>.