add byte_str_t copy ctor

This commit is contained in:
Michiharu Ariza 2018-12-20 16:17:53 -08:00
parent 58c876b1cc
commit 2357663375
1 changed files with 2 additions and 0 deletions

View File

@ -302,6 +302,8 @@ struct byte_str_t : hb_ubytes_t
{
byte_str_t ()
: hb_ubytes_t () {}
byte_str_t (const byte_str_t &bs)
: hb_ubytes_t (bs) {}
byte_str_t (const UnsizedByteStr& s, unsigned int l)
: hb_ubytes_t ((const unsigned char*)&s, l) {}
byte_str_t (const unsigned char *s, unsigned int l)