File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ namespace tklb {
2222 if (N == 0 ) { return nullptr ; }
2323 return mData ;
2424 }
25+
26+ char * c_str () {
27+ if (N == 0 ) { return nullptr ; }
28+ return mData ;
29+ }
30+
2531 const char & operator [](const Size index) const {
2632 TKLB_ASSERT (index < N)
2733 // If asserts are disable, pretend the string is terminated
@@ -72,6 +78,10 @@ namespace tklb {
7278 return N; // someone wrote past the end
7379 }
7480
81+ Size maxSize () const {
82+ return N;
83+ }
84+
7585 void set (const char * str) {
7686 if (N == 0 ) { return ; }
7787 Size i = 0 ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ namespace tklb {
1010 if (db < silenceDb) {
1111 return 0 ;
1212 }
13- return pow (T (10 ), db * T (0.05 ));
13+ return pow (T (10 ), db * T (0.05 ));
1414 }
1515
1616 template <typename T>
You can’t perform that action at this time.
0 commit comments