39 setg(
const_cast<char*
>(
static_cast<const char*
>( git_blob_rawcontent( aBlob ) ) ),
40 const_cast<char*
>(
static_cast<const char*
>( git_blob_rawcontent( aBlob ) ) ),
41 const_cast<char*
>(
static_cast<const char*
>( git_blob_rawcontent( aBlob ) ) ) +
42 git_blob_rawsize( aBlob ) );
51 return traits_type::eof();
54 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.
LINE_READER(unsigned aMaxLineLength=LINE_READER_LINE_DEFAULT_MAX)
Build a line reader and fixes the length of the maximum supported line length to aMaxLineLength.
unsigned m_length
no. bytes in line before trailing nul.
char * m_line
the read line of UTF8 text
#define APIEXPORT
Macros which export functions from a DLL/DSO.