CreateBufferArgs

Arguments to be passed to createBuffer

  • 1.7
  • 1.7
  • 1.7

NOTE This is an abstract type. Any object meeting this description can be used where this type is used.

Defined By

Properties

CreateBufferArgs
: Number
The byte order of this buffer. ...

The byte order of this buffer.

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

CreateBufferArgs
: Number
The length of the buffer. ...

The length of the buffer.

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

CreateBufferArgs
: String
The type of data encoding to use with value. ...

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

CreateBufferArgs
: String/Number
An initial value which will be encoded and placed in the buffer. ...

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.)