17 using namespace llvm::msf;
22 if (
auto EC = Stream.
writeBytes(Offset, Buffer))
24 Offset += Buffer.
size();
67 if (
auto EC = Stream.
writeBytes(Offset, Bytes))
83 Ref = Ref.
slice(0, Length);
RefType slice(uint32_t Offset, uint32_t Len) const
Error writeZeroString(StringRef Str)
const unsigned char * bytes_end() const
Error writeFixedString(StringRef Str)
Error writeStreamRef(ReadableStreamRef Ref)
Error writeObject(const T &Obj)
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE size_t size() const
size - Get the string size.
size_t size() const
size - Get the array size.
Error writeBytes(ArrayRef< uint8_t > Buffer)
uint32_t getLength() const
Error writeInteger(uint8_t Int)
Error readLongestContiguousChunk(ArrayRef< uint8_t > &Buffer)
Error writeBytes(uint32_t Offset, ArrayRef< uint8_t > Data) const
static ErrorSuccess success()
Create a success value.
uint32_t bytesRemaining() const
const unsigned char * bytes_begin() const
Lightweight error class with error context and mandatory checking.
StringRef - Represent a constant reference to a string, i.e.