Searched refs:byte_data (Results 1 – 5 of 5) sorted by relevance
14 static size_t WriteBytes(const ByteData& byte_data, Byte* pos) { in WriteBytes() argument15 size_t byte_count = byte_data.GetByteCount(); in WriteBytes()19 if (byte_data.GetType() == ByteData::kHex) { in WriteBytes()20 const string& value = byte_data.GetValue(); in WriteBytes()27 memcpy(pos, byte_data.GetValue().c_str(), byte_count); in WriteBytes()44 for (const auto& byte_data : byte_data_vector) { in ByteBuffer() local45 size_ += byte_data.GetByteCount(); in ByteBuffer()55 for (const auto& byte_data : byte_data_vector) { in ByteBuffer() local56 size_t bytes_written = WriteBytes(byte_data, pos); in ByteBuffer()57 if (bytes_written == 0 && byte_data.GetByteCount() != 0) { in ByteBuffer()
103 const unsigned char* byte_data = static_cast<const unsigned char*>(data); in EncodeFromArray() local109 c = (byte_data[i] >> 2) & 0x3f; in EncodeFromArray()112 c = (byte_data[i] << 4) & 0x3f; in EncodeFromArray()114 c |= (byte_data[i] >> 4) & 0x0f; in EncodeFromArray()119 c = (byte_data[i] << 2) & 0x3f; in EncodeFromArray()121 c |= (byte_data[i] >> 6) & 0x03; in EncodeFromArray()129 c = byte_data[i] & 0x3f; in EncodeFromArray()
99 void HexDump(const unsigned char* byte_data, size_t length) { in HexDump() argument100 if (byte_data == NULL || length == 0) { in HexDump()107 fprintf(stderr, "%02x ", byte_data[i]); in HexDump()
37 void HexDump(const unsigned char* byte_data, size_t length);
37 void AddByteData(const ByteData& byte_data) { in AddByteData() argument38 byte_data_.push_back(byte_data); in AddByteData()