Adds utility functions to NSData, that help deal with null termination of C strings.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
achmizs 7e64a43a53 Added LICENSE il y a 4 ans
.gitignore Create .gitignore il y a 9 ans
LICENSE Added LICENSE il y a 4 ans
NSData+SA_NSDataExtensions.h Added +[dataFromCString:] and +[dataFromCString:]; much cleanup il y a 4 ans
NSData+SA_NSDataExtensions.m Added +[dataFromCString:] and +[dataFromCString:]; much cleanup il y a 4 ans
README.md Updated README.md il y a 4 ans

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.