38 setg(
const_cast<char*
>(
static_cast<const char*
>( git_blob_rawcontent( aBlob ) ) ),
39 const_cast<char*
>(
static_cast<const char*
>( git_blob_rawcontent( aBlob ) ) ),
40 const_cast<char*
>(
static_cast<const char*
>( git_blob_rawcontent( aBlob ) ) ) + git_blob_rawsize( aBlob ) );
49 return traits_type::eof();
52 std::streamsize
xsputn(
const char* s, std::streamsize n )
override
~BLOB_BUFFER_STREAM() override
BLOB_BUFFER_STREAM(git_blob *aBlob)
std::streamsize xsputn(const char *s, std::streamsize n) override
int overflow(int c) override
BLOB_BUFFER_STREAM * m_stream
BLOB_READER(git_blob *aBlob)
char * ReadLine() override
Read a line of text into the buffer and increments the line number counter.
An abstract class from which implementation specific LINE_READERs may be derived to read single lines...
unsigned m_length
no. bytes in line before trailing nul.
char * m_line
the read line of UTF8 text