blob: 416afb6eab907fa14d9cd7b7e9909b3576d79a6e [file] [log] [blame]
Enrico Granata91544802011-09-06 19:20:51 +00001//===-- SWIG Interface for SBData -------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10
11namespace lldb {
12
13class SBData
14{
15public:
16
17 SBData ();
18
19 SBData (const SBData &rhs);
20
21 ~SBData ();
22
23 uint8_t
24 GetAddressByteSize ();
25
26 void
27 Clear ();
28
29 bool
30 IsValid();
31
32 size_t
33 GetByteSize ();
34
35 lldb::ByteOrder
36 GetByteOrder();
37
38 float
39 GetFloat (lldb::SBError& error, uint32_t offset);
40
41 double
42 GetDouble (lldb::SBError& error, uint32_t offset);
43
44 long double
45 GetLongDouble (lldb::SBError& error, uint32_t offset);
46
47 lldb::addr_t
48 GetAddress (lldb::SBError& error, uint32_t offset);
49
50 uint8_t
51 GetUnsignedInt8 (lldb::SBError& error, uint32_t offset);
52
53 uint16_t
54 GetUnsignedInt16 (lldb::SBError& error, uint32_t offset);
55
56 uint32_t
57 GetUnsignedInt32 (lldb::SBError& error, uint32_t offset);
58
59 uint64_t
60 GetUnsignedInt64 (lldb::SBError& error, uint32_t offset);
61
62 int8_t
63 GetSignedInt8 (lldb::SBError& error, uint32_t offset);
64
65 int16_t
66 GetSignedInt16 (lldb::SBError& error, uint32_t offset);
67
68 int32_t
69 GetSignedInt32 (lldb::SBError& error, uint32_t offset);
70
71 int64_t
72 GetSignedInt64 (lldb::SBError& error, uint32_t offset);
73
74 const char*
75 GetString (lldb::SBError& error, uint32_t offset);
76
77 bool
78 GetDescription (lldb::SBStream &description);
79
80 size_t
81 ReadRawData (lldb::SBError& error,
82 uint32_t offset,
83 void *buf,
84 size_t size);
85
86 void
87 SetData(lldb::SBError& error, const void *buf, size_t size, lldb::ByteOrder endian, uint8_t addr_size);
88
89 bool
90 Append(const SBData& rhs);
91
92
93};
94
95} // namespace lldb