10 #ifndef LLVM_DEBUGINFO_MSF_STREAMREF_H
11 #define LLVM_DEBUGINFO_MSF_STREAMREF_H
27 : Stream(&Stream),
ViewOffset(Offset), Length(Length) {}
52 if (
Stream != Other.Stream)
56 if (
Length != Other.Length)
85 if (Size + Offset >
Length)
103 if (Buffer.
size() > MaxLength)
104 Buffer = Buffer.
slice(0, MaxLength);
135 #endif // LLVM_DEBUGINFO_MSF_STREAMREF_H
RefType slice(uint32_t Offset, uint32_t Len) const
const StreamType * Stream
WritableStreamRef()=default
WritableStreamRef(const WritableStream &Stream, uint32_t Offset, uint32_t Length)
ArrayRef< T > slice(size_t N, size_t M) const
slice(n, m) - Chop off the first N elements of the array, and keep M elements in the array...
RefType keep_front(uint32_t N) const
WritableStreamRef(const WritableStream &Stream)
ReadableStreamRef(const ReadableStream &Stream)
Error readBytes(uint32_t Offset, uint32_t Size, ArrayRef< uint8_t > &Buffer) const
ReadableStreamRef(const ReadableStream &Stream, uint32_t Offset, uint32_t Length)
size_t size() const
size - Get the array size.
Maximum length of the test input libFuzzer tries to guess a good value based on the corpus and reports it always prefer smaller inputs during the corpus shuffle When libFuzzer itself reports a bug this exit code will be used If indicates the maximal total time in seconds to run the fuzzer minimizes the provided crash input Use with etc Experimental Use value profile to guide fuzzing Number of simultaneous worker processes to run the jobs If min(jobs, NumberOfCpuCores()/2)\" is used.") FUZZER_FLAG_INT(reload
ReadableStreamRef()=default
RefType drop_front(uint32_t N) const
uint32_t getLength() const
bool operator==(const RefType &Other) const
virtual Error commit() const =0
Error writeBytes(uint32_t Offset, ArrayRef< uint8_t > Data) const
const StreamType * getStream() const
static ErrorSuccess success()
Create a success value.
virtual Error readBytes(uint32_t Offset, uint32_t Size, ArrayRef< uint8_t > &Buffer) const =0
StreamRefBase(const StreamType &Stream, uint32_t Offset, uint32_t Length)
Error readLongestContiguousChunk(uint32_t Offset, ArrayRef< uint8_t > &Buffer) const
Lightweight error class with error context and mandatory checking.
virtual Error readLongestContiguousChunk(uint32_t Offset, ArrayRef< uint8_t > &Buffer) const =0
virtual Error writeBytes(uint32_t Offset, ArrayRef< uint8_t > Data) const =0