| 160 | |
| 161 | template <int SHORT_BUFFER_SIZE> |
| 162 | double StringBuffer<SHORT_BUFFER_SIZE>::as_double() { |
| 163 | current_buffer_ptr()[string_length] = '\0'; |
| 164 | return String::to_float(current_buffer_ptr()); |
| 165 | } |
| 166 | |
| 167 | template <int SHORT_BUFFER_SIZE> |
| 168 | int64_t StringBuffer<SHORT_BUFFER_SIZE>::as_int() { |