Adds utility functions to NSData, that help deal with null termination of C strings.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
achmizs eada9d3cd1 Added +[dataFromCString:] and +[dataFromCString:]; much cleanup 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 Added +[dataFromCString:] and +[dataFromCString:]; much cleanup 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 Said Achmiz.