9
9
#ifndef LLVM_SUPPORT_BINARYSTREAMREF_H
10
10
#define LLVM_SUPPORT_BINARYSTREAMREF_H
11
11
12
- #include " llvm/Support/Compiler.h"
13
12
#include " llvm/ADT/ArrayRef.h"
14
13
#include " llvm/Support/BinaryStream.h"
15
14
#include " llvm/Support/BinaryStreamError.h"
15
+ #include " llvm/Support/Compiler.h"
16
16
#include " llvm/Support/Error.h"
17
17
#include < cstdint>
18
18
#include < memory>
@@ -163,8 +163,9 @@ class BinaryStreamRef
163
163
BinaryStreamRef () = default ;
164
164
LLVM_ABI BinaryStreamRef (BinaryStream &Stream);
165
165
LLVM_ABI BinaryStreamRef (BinaryStream &Stream, uint64_t Offset,
166
- std::optional<uint64_t > Length);
167
- LLVM_ABI explicit BinaryStreamRef (ArrayRef<uint8_t > Data, llvm::endianness Endian);
166
+ std::optional<uint64_t > Length);
167
+ LLVM_ABI explicit BinaryStreamRef (ArrayRef<uint8_t > Data,
168
+ llvm::endianness Endian);
168
169
LLVM_ABI explicit BinaryStreamRef (StringRef Data, llvm::endianness Endian);
169
170
170
171
BinaryStreamRef (const BinaryStreamRef &Other) = default ;
@@ -183,15 +184,15 @@ class BinaryStreamRef
183
184
// / bounds of this BinaryStreamRef's view and the implementation could read
184
185
// / the data, and an appropriate error code otherwise.
185
186
LLVM_ABI Error readBytes (uint64_t Offset, uint64_t Size ,
186
- ArrayRef<uint8_t > &Buffer) const ;
187
+ ArrayRef<uint8_t > &Buffer) const ;
187
188
188
189
// / Given an Offset into this BinaryStreamRef, return a reference to the
189
190
// / largest buffer the stream could support without necessitating a copy.
190
191
// /
191
192
// / \returns a success error code if implementation could read the data,
192
193
// / and an appropriate error code otherwise.
193
194
LLVM_ABI Error readLongestContiguousChunk (uint64_t Offset,
194
- ArrayRef<uint8_t > &Buffer) const ;
195
+ ArrayRef<uint8_t > &Buffer) const ;
195
196
};
196
197
197
198
struct BinarySubstreamRef {
@@ -235,10 +236,11 @@ class WritableBinaryStreamRef
235
236
public:
236
237
WritableBinaryStreamRef () = default ;
237
238
LLVM_ABI WritableBinaryStreamRef (WritableBinaryStream &Stream);
238
- LLVM_ABI WritableBinaryStreamRef (WritableBinaryStream &Stream, uint64_t Offset,
239
- std::optional<uint64_t > Length);
239
+ LLVM_ABI WritableBinaryStreamRef (WritableBinaryStream &Stream,
240
+ uint64_t Offset,
241
+ std::optional<uint64_t > Length);
240
242
LLVM_ABI explicit WritableBinaryStreamRef (MutableArrayRef<uint8_t > Data,
241
- llvm::endianness Endian);
243
+ llvm::endianness Endian);
242
244
WritableBinaryStreamRef (const WritableBinaryStreamRef &Other) = default ;
243
245
WritableBinaryStreamRef &
244
246
operator =(const WritableBinaryStreamRef &Other) = default ;
0 commit comments