forked from johnjohndoe/LineReader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNSDataExtensions.h
More file actions
33 lines (22 loc) · 827 Bytes
/
NSDataExtensions.h
File metadata and controls
33 lines (22 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//
// NSDataExtensions.h
// LineReader
//
// Created by Tobias Preuss on 08.10.10.
// Copyright 2010 Tobias Preuss. All rights reserved.
//
#import <Cocoa/Cocoa.h>
// -----------------------------------------------------------------------------
// NSData additions.
// -----------------------------------------------------------------------------
@interface NSData (Additions)
- (NSRange)rangeOfData:(NSData*)dataToFind;
- (NSRange)rangeOfDataBackwardsSearch:(NSData*)dataToFind;
- (NSString*)stringValueWithEncoding:(NSStringEncoding)encoding;
@end
// -----------------------------------------------------------------------------
// NSMutableData additions.
// -----------------------------------------------------------------------------
@interface NSMutableData (Additions)
- (void)prepend:(NSData*)data;
@end