IRCClient/NSData+SA_NSDataExtensions
2015-12-24 23:31:30 -05:00
..
NSData+SA_NSDataExtensions.h Fix possible bad access bug 2015-12-24 23:31:30 -05:00
NSData+SA_NSDataExtensions.m Fix possible bad access bug 2015-12-24 23:31:30 -05:00
README.md Fix more null termination bugs 2015-12-22 18:33:01 -05:00

NSData+SA_NSDataExtensions

Adds utility functions to NSData, that help deal with null termination of C strings.

This category on NSData adds properties that allow you to get the null-terminated or non-null-terminated versions of byte arrays stored as NSData objects, and to easily check whether an NSData's byte array is, or is not, null-terminated (that is, whether its last byte is a null).

Copyright (c) 2015 Said Achmiz.