# WriteStreamCallbackArgs

Argument passed to the callback when an asynchronous writeStream operation finishes.

Availability
1.7
1.7
9.2.0
Extends

NOTE

This is an abstract type. Any object of this structure can be used where this type is used.

# Properties

# bytesProcessed

Availability
1.7
1.7
9.2.0
bytesProcessed :Number

Number of bytes processed, or -1 in the event of an error or end of stream.


# code

Availability
1.7
1.7
9.2.0
code :Number

Error code. Returns 0 if success is true.

Error code will be 0 if success is true, nonzero otherwise. If the error was generated by the operating system, that system's error value is used. Otherwise, this value will be -1.


# error

Availability
1.7
1.7
9.2.0
error :String

Error message, if any returned.

Will be undefined if success is true.


# fromStream

Availability
1.7
1.7
9.2.0
fromStream :Titanium.IOStream

Stream being read from.


# success

Availability
1.7
1.7
9.2.0
success :Boolean

Indicates if the operation succeeded.

Returns true if request succeeded, false otherwise.


# toStream

Availability
1.7
1.7
9.2.0
toStream :Titanium.IOStream

Stream being written to.