IDBLUE logo
CByteArray.h
00001 
00002 // Copyright © 2013 Cathexis Innovations Inc. All rights reserved.
00003 
00004 
00005 #import <Foundation/Foundation.h>
00006 #import "IDBlue.h"
00007 
00013 @interface CByteArray : NSObject {
00014         // The nuber of bytes allocated in the array
00015         int _length;
00016         // The byte array 
00017         byte* _data;
00018 }
00019 
00025 -(id) initWithArrayLength:(int)length;
00026 
00032 -(id) initWithData:(const byte*) data withLen:(int) len;
00033 
00038 -(id) initWithAsciiString: (NSString*) s;
00039 
00047 -(id) initWithHexString: (NSString*) hex;
00048 
00052 -(int) arrayLength;
00053 
00057 -(byte*) data;
00058 
00066 -(int) setData: (const byte*) data withDataLen: (int) dataLen;
00067 
00077 -(int) setData: (const byte*) data withDataLen: (int) dataLen withIndex: (int) index withCount: (int) count;
00078 
00084 -(int) setData: (CByteArray*) data;
00085 
00091 -(NSString*) toString;
00092 
00097 -(NSString*) toStringReversed;
00098 
00102 -(void) reverse;
00103 
00104 
00105 @end

 

Generated on Mon Jan 19 2015 15:47:36
Copyright © 2015 Cathexis Innovations Inc. All Rights Reserved.