added mio_jsonwr_writerawbytes()

This commit is contained in:
hyung-hwan 2020-06-01 09:05:47 +00:00
parent 3e45c5cfdf
commit a281cfaceb
2 changed files with 13 additions and 0 deletions

View File

@ -1147,3 +1147,9 @@ jsonwr->pretty = 1;
return 0;
}
int mio_jsonwr_writerawbytes (mio_jsonwr_t* jsonwr, const mio_uint8_t* dptr, mio_oow_t dlen)
{
WRITE_BYTES_NOESC (jsonwr, dptr, dlen);
return 0;
}

View File

@ -309,6 +309,13 @@ MIO_EXPORT int mio_jsonwr_write (
#define mio_jsonwr_writestringwithbcstr(jsonwr,dptr) mio_jsonwr_write(jsonwr, MIO_JSON_INST_STRING, 0, dptr, mio_count_bcstr(dptr))
MIO_EXPORT int mio_jsonwr_writerawbytes (
mio_jsonwr_t* jsonwr,
const mio_uint8_t* dptr,
mio_oow_t dlen
);
#if defined(__cplusplus)
}
#endif