Arguments to be passed to createBuffer
NOTE This is an abstract type. Any object meeting this description can be used where this type is used.
The byte order of this buffer.
Default: The OS native byte order is used by default. See Titanium.Codec.getNativeByteOrder
The length of the buffer.
Default: 0, unless `value` is specified, in which case the length of the encoded data is used.
The type of data encoding to use with value
.
Default: Titanium.Codec.CHARSET_UTF8 if `value` is a String, If `value` is a Number, this argument is required
An initial value which will be encoded and placed in the buffer. If value is a Number, type must also be set. (this is simply a convenient way of calling Titanium.Codec.encodeString or Titanium.Codec.encodeNumber and placing the encoded value in the returned buffer.)