Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Side by Side Diff: class-dump/src/CDDataCursor.h

Issue 7793008: Add the 3.3.3 sources for class-dump. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « class-dump/src/CDClassFrameworkVisitor.m ('k') | class-dump/src/CDDataCursor.m » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // -*- mode: ObjC -*-
2
3 // This file is part of class-dump, a utility for examining the Objective-C seg ment of Mach-O files.
4 // Copyright (C) 1997-1998, 2000-2001, 2004-2010 Steve Nygard.
5
6 #import <Foundation/Foundation.h>
7
8 enum {
9 CDByteOrderLittleEndian = 0,
10 CDByteOrderBigEndian = 1,
11 };
12 typedef NSUInteger CDByteOrder;
13
14 @interface CDDataCursor : NSObject
15 {
16 NSData *data;
17 NSUInteger offset;
18 CDByteOrder byteOrder;
19 }
20
21 - (id)initWithData:(NSData *)someData;
22 - (void)dealloc;
23
24 - (NSData *)data;
25 - (const void *)bytes;
26
27 - (NSUInteger)offset;
28 - (void)setOffset:(NSUInteger)newOffset;
29 - (void)advanceByLength:(NSUInteger)length;
30 - (NSUInteger)remaining;
31
32 - (uint8_t)readByte;
33
34 - (uint16_t)readLittleInt16;
35 - (uint32_t)readLittleInt32;
36 - (uint64_t)readLittleInt64;
37
38 - (uint16_t)readBigInt16;
39 - (uint32_t)readBigInt32;
40 - (uint64_t)readBigInt64;
41
42 - (float)readLittleFloat32;
43 - (float)readBigFloat32;
44
45 - (double)readLittleFloat64;
46 //- (double)readBigFloat64;
47
48 - (void)appendBytesOfLength:(NSUInteger)length intoData:(NSMutableData *)targetD ata;
49 - (void)readBytesOfLength:(NSUInteger)length intoBuffer:(void *)buf;
50 - (BOOL)isAtEnd;
51
52 - (CDByteOrder)byteOrder;
53 - (void)setByteOrder:(CDByteOrder)newByteOrder;
54
55 // Read using the current byteOrder
56 - (uint16_t)readInt16;
57 - (uint32_t)readInt32;
58 - (uint64_t)readInt64;
59
60 - (uint32_t)peekInt32;
61
62 - (NSString *)readCString;
63 - (NSString *)readStringOfLength:(NSUInteger)length encoding:(NSStringEncoding)e ncoding;
64
65 @end
OLDNEW
« no previous file with comments | « class-dump/src/CDClassFrameworkVisitor.m ('k') | class-dump/src/CDDataCursor.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698