| Platform | Since |
|---|---|
| Android | 1.7 |
| iPhone | 1.7 |
| iPad | 1.7 |
Decodes the source buffer (starting at the optional position) using the passed in data type.
Throws an Exception if source is null, or position is greater than source.length
Decode an 8 byte double-precision floating point number using the OS byte order
var buffer = //... var value = Ti.Codec.decodeNumber({ source: buffer, type: Ti.Codec.TYPE_DOUBLE });
var buffer = //... var value = Ti.Codec.decodeNumber({ source: buffer, position: 10, type: Ti.Codec.TYPE_INT, byteOrder: Ti.Codec.BIG_ENDIAN });
| Name | Type | Summary |
|---|---|---|
| options | Dictionary<DecodeNumberDict> |
decodeNumber named options |