Skip to content

Billy1988/ios-byteBuffer

Repository files navigation

ios-byteBuffer

[![CI Status](http://img.shields.io/travis/Billy Lee/ios-byteBuffer.svg?style=flat)](https://travis-ci.org/Billy Lee/ios-byteBuffer) Version License Platform

Usage

#allocation

ByteBuffer *buffer = [ByteBuffer initWithOrder:ByteOrderLittleEndian];

#input data

- (void)put:(Byte)b;

- (void)putByteBuffer:(ByteBuffer*)bb;

- (void)putData:(NSData*)data;

- (void)putShort:(short)d;

- (void)putFloat:(float)f;

- (void)putInt:(int)i;

#output

- (Byte)get:(int)index;

- (float)getFloat:(int)index;

- (int)getInt:(int)index;

- (NSData*)convertNSData;

Requirements

iOS platform, objective-c

Installation

ios-byteBuffer is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "ios-byteBuffer"

Author

Billy Lee, lchb1988@gmail.com

License

ios-byteBuffer is available under the MIT license. See the LICENSE file for more info.

About

A class re-write in objective-c

Resources

License

Stars

Watchers

Forks

Packages

No packages published