Lines Matching refs:numChars
20 void DataWriter::writeUTF8(const ST::string& str, size_t numChars) in writeUTF8() argument
22 size_t n = std::min<size_t>(str.size() + 1, numChars); in writeUTF8()
28 skip(sizeof(char) * (numChars - n)); in writeUTF8()
31 void DataWriter::writeUTF16(const ST::string& str, size_t numChars) in writeUTF16() argument
34 size_t n = std::min<size_t>(buf.size() + 1, numChars); in writeUTF16()
40 skip(sizeof(char16_t) * (numChars - n)); in writeUTF16()
43 void DataWriter::writeUTF32(const ST::string& str, size_t numChars) in writeUTF32() argument
46 size_t n = std::min<size_t>(buf.size() + 1, numChars); in writeUTF32()
52 skip(sizeof(char32_t) * (numChars - n)); in writeUTF32()
98 ST::string DataReader::readUTF8(size_t numChars, ST::utf_validation_t validation) in readUTF8() argument
100 ST::char_buffer buf{numChars, '\0'}; in readUTF8()
101 readArray(buf.data(), numChars); in readUTF8()
105 ST::string DataReader::readUTF16(size_t numChars, const IEncodingCorrector* fixer, ST::utf_validati… in readUTF16() argument
107 ST::utf16_buffer buf{numChars, u'\0'}; in readUTF16()
108 readArray(buf.data(), numChars); in readUTF16()
123 ST::string DataReader::readUTF32(size_t numChars, ST::utf_validation_t validation) in readUTF32() argument
125 ST::utf32_buffer buf{numChars, U'\0'}; in readUTF32()
126 readArray(buf.data(), numChars); in readUTF32()