Adds utility functions to NSData, that help deal with null termination of C strings.
Go to file
2021-12-05 15:20:50 -05:00
.gitignore Create .gitignore 2016-04-03 23:41:42 -04:00
LICENSE Added LICENSE 2021-12-04 05:18:06 -05:00
NSData+SA_NSDataExtensions.h Rename some methods; remove extraneous others 2021-12-05 15:20:50 -05:00
NSData+SA_NSDataExtensions.m Rename some methods; remove extraneous others 2021-12-05 15:20:50 -05:00
README.md Updated README.md 2021-12-04 05:08:54 -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 NSDatas byte array is, or is not, null-terminated (that is, whether its last byte is a null).

Copyright 2015-2021 Said Achmiz.