search for: readfrombuff

Displaying 2 results from an estimated 2 matches for "readfrombuff".

Did you mean: readfrombuffer
2014 Mar 24
2
[LLVMdev] [RFC] Moving OnDiskHashTable from clang to LLVM
...); + unsigned len = *reinterpret_cast<llvm::support::ulittle16_t *>(Items); + Items += 2; Presumably, hiding the addition helps maintainability. I suppose we could add functions functions that increment the buffer to Endian.h, and maybe expose an API like so: + unsigned len = support::readFromBuffer<support::ulittle16_t>(Items) For writing, what about adding this to raw_ostream directly? Something like: template <typename T> raw_ostream &write_le(T V) { for (size_t I = 0, E = sizeof(T); I < E; ++I) *this << (unsigned char)(0xFF & (V >> (I * 8...
2014 Mar 22
3
[LLVMdev] [RFC] Moving OnDiskHashTable from clang to LLVM
Rafael Avila de Espindola <rafael.espindola at gmail.com> writes: >> On Mar 22, 2014, at 1:31, Justin Bogner <mail at justinbogner.com> wrote: >> Also, the header includes a "clang::io" namespace with some operations >> for reading and writing little endian files. Should these be directly >> renamed to "llvm::io", or would something like