Titanium.Buffer.length

Property of Titanium.Buffer.
Platform Since
Android 1.7
iPhone 1.7
iPad 1.7
Permission: read-write

Summary

The length of the buffer in bytes. When length is modified the buffer will be re-sized while preserving existing data where possible. If the new buffer length is smaller than the length of the existing data then the existing data will be truncated down to the size of the new buffer. Resizing the buffer via setting length should be used sparingly due to the associated overhead.

Type

Number

Default

0, unless value is specified, at which case the length of the encoded data is used