Lines Matching refs:value

127 bool ByteBuffer::GetInt64(int64_t& value)
129 if (!GetInt64(0, value)) {
137 bool ByteBuffer::GetInt64(int32_t index, int64_t& value)
143 if (memcpy_s(&value, sizeof(value), (buffer.get() + position + index), sizeof(int64_t)) != EOK) {
160 bool ByteBuffer::GetInt32(int32_t& value)
162 if (!GetInt32(0, value)) {
170 bool ByteBuffer::GetInt32(int32_t index, int32_t& value)
176 if (memcpy_s(&value, sizeof(value), (buffer.get() + position + index), sizeof(int32_t)) != EOK) {
183 bool ByteBuffer::GetUInt32(int32_t index, uint32_t& value)
189 if (memcpy_s(&value, sizeof(value), (buffer.get() + position + index), sizeof(uint32_t)) != EOK) {
196 bool ByteBuffer::GetUInt32(uint32_t& value)
198 if (!GetUInt32(0, value)) {
206 bool ByteBuffer::GetUInt16(uint16_t& value)
208 if (!GetUInt16(0, value)) {
216 bool ByteBuffer::GetUInt16(int32_t index, uint16_t& value)
222 if (memcpy_s(&value, sizeof(value), (buffer.get() + position + index), sizeof(uint16_t)) != EOK) {
229 bool ByteBuffer::GetInt16(int16_t& value)
231 if (!GetInt16(0, value)) {
239 bool ByteBuffer::GetInt16(int32_t index, int16_t& value)
245 if (memcpy_s(&value, sizeof(value), (buffer.get() + position + index), sizeof(int16_t)) != EOK) {
252 bool ByteBuffer::GetUInt8(uint8_t& value)
254 if (!GetUInt8(0, value)) {
262 bool ByteBuffer::GetUInt8(int32_t index, uint8_t& value)
268 if (memcpy_s(&value, sizeof(value), (buffer.get() + position + index), sizeof(uint8_t)) != EOK) {
275 bool ByteBuffer::GetInt8(int8_t& value)
277 if (!GetInt8(0, value)) {
285 bool ByteBuffer::GetInt8(int32_t index, int8_t& value)
291 if (memcpy_s(&value, sizeof(value), (buffer.get() + position + index), sizeof(int8_t)) != EOK) {
298 void ByteBuffer::PutInt64(int64_t value)
300 if ((limit - position) >= static_cast<int64_t>(sizeof(value))) {
301 if (memcpy_s(buffer.get() + position, limit - position, &value, sizeof(value)) != EOK) {
304 position += sizeof(value);
309 void ByteBuffer::PutInt32(int32_t offset, int32_t value)
311 if (buffer != nullptr && offset >= 0 && limit - offset >= static_cast<int32_t>(sizeof(value))) {
312 if (memcpy_s((buffer.get() + offset), (limit - offset), &value, sizeof(value)) != EOK) {
318 void ByteBuffer::PutInt16(int32_t offset, int16_t value)
320 if (buffer != nullptr && offset >= 0 && limit - offset >= static_cast<int16_t>(sizeof(value))) {
321 if (memcpy_s((buffer.get() + offset), (limit - offset), &value, sizeof(value)) != EOK) {
327 void ByteBuffer::PutByte(int32_t offset, char value)
329 if (buffer != nullptr && offset >= 0 && limit - offset >= static_cast<int32_t>(sizeof(value))) {
330 if (memcpy_s((buffer.get() + offset), (limit - offset), (&value), sizeof(value)) != EOK) {
365 void ByteBuffer::PutInt32(int32_t value)
367 if (limit - position >= static_cast<int32_t>(sizeof(value))) {
368 if (memcpy_s(buffer.get() + position, limit - position, &value, sizeof(value)) != EOK) {
371 position += sizeof(value);
376 void ByteBuffer::PutInt16(int16_t value)
378 if (limit - position >= static_cast<int16_t>(sizeof(value))) {
379 if (memcpy_s(buffer.get() + position, limit - position, &value, sizeof(value)) != EOK) {
382 position += sizeof(value);
387 void ByteBuffer::PutUInt8(uint8_t value)
389 if (limit - position >= static_cast<int8_t>(sizeof(value))) {
390 if (memcpy_s(buffer.get() + position, limit - position, &value, sizeof(value)) != EOK) {
393 position += sizeof(value);
398 void ByteBuffer::PutUInt16(uint16_t value)
400 if (limit - position >= static_cast<uint16_t>(sizeof(value))) {
401 if (memcpy_s(buffer.get() + position, limit - position, &value, sizeof(value)) != EOK) {
404 position += sizeof(value);
409 void ByteBuffer::PutUInt32(uint32_t value)
411 if (limit - position >= static_cast<uint32_t>(sizeof(value))) {
412 if (memcpy_s(buffer.get() + position, limit - position, &value, sizeof(value)) != EOK) {
415 position += sizeof(value);
429 void ByteBuffer::PutByte(char value)
431 if (buffer != nullptr && limit - position >= static_cast<char>(sizeof(value))) {
432 if (memcpy_s(buffer.get() + position, limit - position, &value, sizeof(value)) != EOK) {
435 position += sizeof(value);
596 SIGNATURE_TOOLS_LOGE("diff value[%d]: %x %x",
612 SIGNATURE_TOOLS_LOGE("diff value[%d]: %x %x",