You are reading 13.4.0. See this page in 13.4.1.
Titanium.BufferStream
Extends Titanium.IOStreamTitanium.Proxy
Wrapper around Titanium.Buffer that implements the Titanium.IOStream interface.
Use the Titanium.Stream.createStream method to create a BufferStream instance from a
Buffer.
Properties 3
Inherited from Titanium.Proxy
The name of the API that this proxy corresponds to.
Inherited from Titanium.Proxy
Indicates if the proxy will bubble an event to its parent.
Default: true
Inherited from Titanium.Proxy
The Window or TabGroup whose Activity lifecycle should be triggered on the proxy.
Methods 9
Inherited from Titanium.Proxy
Adds the specified callback as an event listener for the named event.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| callback | Callback<Titanium.Event> | Callback function to invoke when the event is fired. 4 fields
|
applyProperties
since 3.0.0Inherited from Titanium.Proxy
Applies the properties to the proxy.
| Parameters | Type | Description |
|---|---|---|
| props | Dictionary | A dictionary of properties to apply. |
Inherited from Titanium.IOStream
Closes this stream.
Inherited from Titanium.Proxy
Fires a synthesized event to any registered listeners.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| event? | Dictionary | A dictionary of keys and values to add to the Titanium.Event object sent to the listeners. |
Inherited from Titanium.IOStream
Indicates whether this stream is readable.
True if stream is readable, false otherwise.
Inherited from Titanium.IOStream
Indicates whether this stream is writable.
True if stream is writable, false otherwise.
Inherited from Titanium.IOStream
Reads data from this stream into a buffer.
| Parameters | Type | Description |
|---|---|---|
| buffer | Titanium.Buffer | Buffer to read stream data into. |
| offset? | Number | Offset into the buffer to start writing stream data.
If specified, |
| length? | Number | Maximum number of bytes to read.
If specified, |
| resultsCallback? | Callback<ReadCallbackArgs> | Function to call with the results of the read operation. |
Number of bytes read.
Inherited from Titanium.Proxy
Removes the specified callback as an event listener for the named event.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| callback | Callback<Titanium.Event> | Callback function to remove. Must be the same function passed to 4 fields
|
Inherited from Titanium.IOStream
Writes data from a buffer to this stream.
| Parameters | Type | Description |
|---|---|---|
| buffer | Titanium.Buffer | Buffer to write to this stream. |
| offset? | Number | Offset in the buffer of the first byte to write to the stream.
If specified, |
| length? | Number | Maximum number of bytes to write to the stream.
If specified, |
| resultsCallback? | Callback<WriteCallbackArgs> | Function to call with the results of the write operation. |
Number of bytes written.