I believe a raw_ostream is always in "Binary" mode - do you see
behavior contrary to that?
& seeking - I believe some raw_ostream supports seeking, perhaps
specifically only the fd_ostream? ah, raw_pwrite_ostream:
https://llvm.org/doxygen/raw__ostream_8h_source.html#l00471
On Wed, Jul 22, 2020 at 4:58 PM Yugesh Kothari via llvm-dev
<llvm-dev at lists.llvm.org> wrote:>
> Hi, for a certain use case I need to write byte streams to an
llvm::raw_ostream (similar to how it can be done fo std::ofstream(fileName,
std::ios::binary) ).
>
> Is there a way to do that?
>
> As a second part to the same question, is it possible to set seek to a
particular position for an llvm::raw_ostream. Even that would work for me.
>
> Thanks!
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev