Adds utility functions to NSData, that help deal with null termination of C strings.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
achmizs cb674c9ac3 Rename some methods; remove extraneous others 4 lat temu
.gitignore Create .gitignore 9 lat temu
LICENSE Added LICENSE 4 lat temu
NSData+SA_NSDataExtensions.h Rename some methods; remove extraneous others 4 lat temu
NSData+SA_NSDataExtensions.m Rename some methods; remove extraneous others 4 lat temu
README.md Updated README.md 4 lat temu

README.md

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 2015-2021 Said Achmiz.