NSRange is a plain c-struct so it can be initialized the following way:
NSRange HEADER_VERSION = {0, 4};
or
NSRange HEADER_VERSION = {.location = 0, .length = 4};
See Designated inits section of gcc manual for more details
NSRange is a plain c-struct so it can be initialized the following way:
NSRange HEADER_VERSION = {0, 4};
or
NSRange HEADER_VERSION = {.location = 0, .length = 4};
See Designated inits section of gcc manual for more details