summaryrefslogtreecommitdiffstats
path: root/src/bufstr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bufstr.h')
-rw-r--r--src/bufstr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bufstr.h b/src/bufstr.h
index 80da421..4ce1dae 100644
--- a/src/bufstr.h
+++ b/src/bufstr.h
@@ -69,6 +69,10 @@ class BufStr
}
m_buf = (char *)realloc(m_buf,m_size);
}
+ int size() const
+ {
+ return m_size;
+ }
char *data() const
{
return m_buf;