Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

55 lines (44 sloc) 1.27 kb
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2011 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
#import <Foundation/Foundation.h>
#import "TiProxy.h"
#import "TiBlob.h"
// TODO: Support array-style access of bytes
The class represents a buffer of bytes.
@interface TiBuffer : TiProxy {
NSMutableData* data;
NSNumber* byteOrder;
Provides access to raw data.
@property(nonatomic, retain) NSMutableData* data;
// Public API
Provides access to the buffer length.
@property(nonatomic,assign) NSNumber* length;
Provides access to the data byte order.
The byte order values are: 1 - little-endian, 2 - big-endian.
@property(nonatomic,retain) NSNumber* byteOrder;
// Ti.Buffer objects have an 'overloaded' Ti.Buffer[x] operation for x==int (making them behave like arrays).
// See the code for how this works.
Jump to Line
Something went wrong with that request. Please try again.