Adds utility functions to NSData, that help deal with null termination of C strings.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
achmizs 7e64a43a53 Added LICENSE 4 лет назад
.gitignore Create .gitignore 9 лет назад
LICENSE Added LICENSE 4 лет назад
NSData+SA_NSDataExtensions.h Added +[dataFromCString:] and +[dataFromCString:]; much cleanup 4 лет назад
NSData+SA_NSDataExtensions.m Added +[dataFromCString:] and +[dataFromCString:]; much cleanup 4 лет назад
README.md Updated README.md 4 лет назад

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.