//
//  NSDataExtended.h
//  LaTeXiT
//
//  Created by Pierre Chatelier on 20/11/09.
//  Copyright 2005-2016 Pierre Chatelier. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface NSData (Extended)

+(id) dataWithBase64:(NSString*)base64;
+(id) dataWithBase64:(NSString*)base64 encodedWithNewlines:(BOOL)encodedWithNewlines;
-(NSString*) encodeBase64;
-(NSString*) encodeBase64WithNewlines:(BOOL)encodeWithNewlines;
-(NSString*) sha1Base64;
-(NSRange) bridge_rangeOfData:(NSData *)dataToFind options:(NSDataSearchOptions)mask range:(NSRange)searchRange;
@end
