mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Added C string writer.
This commit is contained in:
@@ -297,6 +297,11 @@ namespace bx
|
||||
return _writer->write(_data, _size, _err);
|
||||
}
|
||||
|
||||
inline int32_t write(WriterI* _writer, const char* _str, Error* _err)
|
||||
{
|
||||
return write(_writer, _str, strLen(_str), _err);
|
||||
}
|
||||
|
||||
inline int32_t write(WriterI* _writer, const StringView& _str, Error* _err)
|
||||
{
|
||||
return write(_writer, _str.getPtr(), _str.getLength(), _err);
|
||||
|
||||
@@ -255,7 +255,10 @@ namespace bx
|
||||
/// Write data.
|
||||
int32_t write(WriterI* _writer, const void* _data, int32_t _size, Error* _err = NULL);
|
||||
|
||||
/// Writer string.
|
||||
/// Write C string.
|
||||
inline int32_t write(WriterI* _writer, const char* _str, Error* _err = NULL);
|
||||
|
||||
/// Write string view.
|
||||
inline int32_t write(WriterI* _writer, const StringView& _str, Error* _err = NULL);
|
||||
|
||||
/// Write repeat the same value.
|
||||
|
||||
Reference in New Issue
Block a user