| Platform | Since |
|---|---|
| Android | 1.7 |
| iPhone | 1.7 |
| iPad | 1.7 |
Buffer is a container for raw data. A buffer is created by the method Titanium.createBuffer.
| Name | Summary |
|---|---|
| addEventListener |
Adds the specified callback as an event listener for the named event. |
| append |
appends |
| append |
same as normal append except this allows appending only |
| clear |
Clears buffer contents but does not change the size of the buffer |
| clone |
create new copy of the current buffer |
| clone |
Creates a new buffer from the original buffer contents starting at |
| copy |
copies the contents of |
| copy |
copies |
| fill |
fills buffer with |
| fill |
fills buffer starting from |
| fireEvent |
Fires a synthesized event to any registered listeners. |
| getByteOrder |
Gets the value of the byteOrder property. |
| getLength |
Gets the value of the length property. |
| getType |
Gets the value of the type property. |
| getValue |
Gets the value of the value property. |
| insert |
inserts |
| insert |
inserts |
| release |
Releases the space allocated to the buffer, sets length to 0. This is effectively the same as |
| removeEventListener |
Removes the specified callback as an event listener for the named event. |
| setLength |
Sets the value of the length property. |
| toBlob |
Converts this buffer to a |
| toString |
Converts this buffer to a String |
| Name | Type | Summary |
|---|---|---|
| byteOrder | Number |
The byte order of this buffer. The OS native byte order is used by default. creation |
| length | Number |
The length of the buffer in bytes. When |
| type | String |
The type of data encoding to use with |
| value | Number or String |
Data to be encoded. If |