binpack implement for iOS / Objectivec