# CreateBufferArgs

Arguments to be passed to createBuffer

Availability
1.7
1.7
9.2.0
Extends
Object

NOTE

This is an abstract type. Any object of this structure can be used where this type is used.

# Properties

# byteOrder

Availability
1.7
1.7
9.2.0
byteOrder :Number

The byte order of this buffer.

Default: The OS native byte order is used by default. See <Titanium.Codec.getNativeByteOrder


# length

Availability
1.7
1.7
9.2.0
length :Number

The length of the buffer.

Default: 0, unless `value` is specified, in which case the length of the encoded data is used.


# type

Availability
1.7
1.7
9.2.0
type :String

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


# value

Availability
1.7
1.7
9.2.0
value :String | Number

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 encodeString or encodeNumber and placing the encoded value in the returned buffer.)