Lines Matching refs:value
168 void Buffer::WriteBE(int32_t value, uint32_t bytes)
170 uint32_t uValue = static_cast<uint32_t>(value);
179 void Buffer::WriteLE(int32_t value, uint32_t bytes)
181 uint32_t uValue = static_cast<uint32_t>(value);
212 void Buffer::WriteInt32BE(int32_t value, uint32_t offset)
215 WriteBE(value, 4);
228 void Buffer::WriteInt32LE(int32_t value, uint32_t offset)
231 WriteLE(value, 4);
244 void Buffer::WriteUInt32BE(int32_t value, uint32_t offset)
247 WriteBE(value, 4);
260 void Buffer::WriteUInt32LE(int32_t value, uint32_t offset)
263 WriteLE(value, 4);
278 uint8_t value;
280 if (memcpy_s(&value, count, raw_ + byteOffset_ + index, count) != EOK) {
283 return value;
286 void Buffer::Set(uint32_t index, uint8_t value)
288 WriteByte(value, index);
323 unsigned int Buffer::WriteString(std::string value, unsigned int size)
325 uint8_t *str = const_cast<uint8_t *>(reinterpret_cast<const uint8_t *>(value.data()));
330 unsigned int Buffer::WriteString(string value, unsigned int offset, unsigned int length)
332 uint8_t *str = const_cast<uint8_t *>(reinterpret_cast<const uint8_t *>(value.data()));
337 void Buffer::WriteStringLoop(string value, unsigned int offset, unsigned int end, unsigned int length)
339 if (end - offset <= 0 || value.length() == 0) {
344 uint8_t *str = const_cast<uint8_t *>(reinterpret_cast<const uint8_t *>(value.data()));
355 std::string Buffer::Utf16StrToStr(std::u16string value)
358 char16_t *data = const_cast<char16_t *>(reinterpret_cast<const char16_t *>(value.data()));
359 for (unsigned int i = 0; i < value.length(); i++) {
369 unsigned int Buffer::WriteString(std::u16string value, unsigned int offset, unsigned int length)
371 string str = Utf16StrToStr(value);
375 void Buffer::WriteStringLoop(std::u16string value, unsigned int offset, unsigned int end)
377 string str = Utf16StrToStr(value);
379 this->WriteStringLoop(str, offset, end, value.length() * 2);
440 std::string Buffer::GetString(std::string value, EncodingType encodingType)
446 str = Utf8ToUtf16BEToANSI(value);
449 str = value;
453 str = Base64Decode(value, encodingType);
456 str = Utf8ToUtf16BEToANSI(value);
464 void Buffer::FillString(string value, unsigned int offset, unsigned int end, string encoding)
468 u16string u16Str = Utf8ToUtf16BE(value);
471 string str = GetString(value, encodingType);
476 unsigned int Buffer::WriteString(string value, unsigned int offset, unsigned int length, string encoding)
481 u16string u16Str = Utf8ToUtf16BE(value);
484 string str = GetString(value, encodingType);