Adds utility functions to NSData, that help deal with null termination of C strings.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
achmizs 782654d444 Create .gitignore 9 år sedan
.gitignore Create .gitignore 9 år sedan
NSData+SA_NSDataExtensions.h Add factory method that returns data with blank C string 10 år sedan
NSData+SA_NSDataExtensions.m Add factory method that returns data with blank C string 10 år sedan
README.md Update README.md 10 år sedan

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.