Adds utility functions to NSData, that help deal with null termination of C strings.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
achmizs 497424f784 Updated README.md 4 年前
.gitignore Create .gitignore 9 年前
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.