Lines Matching refs:end
121 void Buffer::SubBuffer(Buffer *tBuf, uint32_t start, uint32_t end)
127 this->Init(tBuf->GetRaw(), tBuf->byteOffset_ + start, (end - start));
337 void Buffer::WriteStringLoop(string value, unsigned int offset, unsigned int end, unsigned int length)
339 if (end - offset <= 0 || value.length() == 0) {
342 unsigned int loop = length > end - offset ? end - offset : length;
345 while (offset < end) {
346 if (loop + offset > end) {
347 WriteBytes(str, end - offset, raw_ + byteOffset_ + offset);
375 void Buffer::WriteStringLoop(std::u16string value, unsigned int offset, unsigned int end)
379 this->WriteStringLoop(str, offset, end, value.length() * 2);
405 void Buffer::FillBuffer(Buffer *buffer, unsigned int offset, unsigned int end)
410 if (end - offset <= 0) {
413 unsigned int loop = buffer->GetLength() > end - offset ? end - offset : buffer->GetLength();
415 while (offset < end) {
416 if (offset + loop > end) {
417 loop = end - offset;
424 void Buffer::FillNumber(vector<uint8_t> numbers, unsigned int offset, unsigned int end)
426 if (end - offset <= 0) {
429 unsigned int loop = numbers.size() > end - offset ? end - offset : numbers.size();
431 while (offset < end) {
432 if (offset + loop > end) {
433 loop = end - offset;
464 void Buffer::FillString(string value, unsigned int offset, unsigned int end, string encoding)
469 this->WriteStringLoop(u16Str, offset, end);
472 this->WriteStringLoop(str, offset, end, str.length());