HexFiend: HFByteRangeAttribute.h Source File

HexFiend

HFByteRangeAttribute.h
Go to the documentation of this file.
1 #import <Foundation/NSString.h>
2
3 /* Attributes used to illustrate diffs. */
4 extern NSString * const kHFAttributeDiffInsertion;
5
6 /* Attribute used for illustrating a focused range of characters. */
7 extern NSString * const kHFAttributeFocused;
8
9 /* Attributes used for address spaces of other processes. */
10 extern NSString * const kHFAttributeUnmapped; /* A range that is not allocated, used to describe sparse data sets (e.g. a virtual address space). */
11 extern NSString * const kHFAttributeUnreadable; /* A range that is allocated but is not readable. */
12 extern NSString * const kHFAttributeWritable; /* A range that is writable. */
13 extern NSString * const kHFAttributeExecutable; /* A range that is executable. */
14 extern NSString * const kHFAttributeShared; /* A range that is shared memory. */
15
16 extern NSString * const kHFAttributeMagic; /* For testing. */
17
18 /* Bookmark attribute. Pass an integer (the bookmark) and get back a string that can be used as an attribute. */
19 extern NSString *HFBookmarkAttributeFromBookmark(NSInteger bookmark);
20
21 /* Given a bookmark string, return the bookmark index for it, or NSNotFound if the string does not represent a bookmark attribute. */
22 extern NSInteger HFBookmarkFromBookmarkAttribute(NSString *bookmark);
kHFAttributeWritable
NSString *const kHFAttributeWritable
kHFAttributeShared
NSString *const kHFAttributeShared
kHFAttributeDiffInsertion
NSString *const kHFAttributeDiffInsertion
kHFAttributeMagic
NSString *const kHFAttributeMagic
HFBookmarkAttributeFromBookmark
NSString * HFBookmarkAttributeFromBookmark(NSInteger bookmark)
kHFAttributeFocused
NSString *const kHFAttributeFocused
HFBookmarkFromBookmarkAttribute
NSInteger HFBookmarkFromBookmarkAttribute(NSString *bookmark)
kHFAttributeUnmapped
NSString *const kHFAttributeUnmapped
kHFAttributeUnreadable
NSString *const kHFAttributeUnreadable
kHFAttributeExecutable
NSString *const kHFAttributeExecutable