Searched refs:utf8_bytes (Results 1 – 3 of 3) sorted by relevance
246 void ToBytes(std::vector<uint8_t>* utf8_bytes) { in ToBytes() argument249 utf8_bytes->assign(json.begin(), json.end()); in ToBytes()
4782 int utf8_bytes = v8::Utf8Length(*str, str->GetIsolate()); in WriteUtf8() local4783 if (utf8_bytes <= capacity) { in WriteUtf8()4785 if (utf8_bytes == string_length) { in WriteUtf8()4788 if (write_null && (utf8_bytes+1 <= capacity)) { in WriteUtf8()4793 if (write_null && (utf8_bytes+1 > capacity)) { in WriteUtf8()
8011 int utf8_bytes = 0; in ToCString() local8015 utf8_bytes += unibrow::Utf8::Length(character, last); in ToCString()8020 *length_return = utf8_bytes; in ToCString()8023 char* result = NewArray<char>(utf8_bytes + 1); in ToCString()