예제 #1
0
파일: section.hpp 프로젝트: dennisding/box
inline BinaryPtr Section::read_binary( const std::string &name )
{
	SectionPtr section = read_section( name );
	if ( !section ) {
		return BinaryPtr();
	}
	return section->as_binary();
}
예제 #2
0
	BinaryPtr Integer::ToBinary() const
	{
		boost::uint64_t tmp = detail::to_network(boost::uint64_t(GetValue()));		
		return BinaryPtr(new Binary(reinterpret_cast<boost::uint8_t const *>(&tmp), 8));
	}
예제 #3
0
	BinaryPtr UUID::ToBinary() const
	{
		std::vector<char> bytes(16,0);
		m_value.copyTo(&bytes[0]);
		return BinaryPtr(new Binary(bytes.begin(), bytes.end()));
	}
예제 #4
0
파일: section.hpp 프로젝트: dennisding/box
inline BinaryPtr Section::as_binary()
{
	return BinaryPtr();
}