Displaying 2 results from an estimated 2 matches for "range_type".
2009 Sep 25
0
[LLVMdev] MemoryBuffer
...in
terms of speed for all situations. I write code like that all the
time, would be quite simple, would you accept such code? Just from a
quick thought the interface would change from using
getBufferStart()/getBufferEnd()/getBufferSize() to something like
getRange() which returns a random_access_range_type<no_policy>, which
would probably have an equivalent use like (using a monotype font to
line things up):
typedef const char cchar;
MemoryBuffer mb;
MemoryBuffer::range_type<policy> rt(mb.getRange());
Current MemoryBuffer Range-based MemoryBuffer
__________________...
2009 Sep 24
7
[LLVMdev] MemoryBuffer
I was writing something using MemoryBuffer, and while looking through
its code I came across line 59:
assert(BufEnd[0] == 0 && "Buffer is not null terminated!");
I am curious if the MemoryBuffer only supports non-binary, non-null
embedded files, or if it supports binary as well. I do not see
anything inherently not expecting binary files except for that one
line, so I am