Issue 3: The Function amf0_data_type::encode Is Not Practical to Use
Status:  New
Owner: ----
Reported by cnpeter...@gmail.com, Jun 6, 2012
	/**
	 * Caution: I don't check the pointer here.
	 */
	virtual void encode(char* const data) const = 0;

The reason is: the caller can never know the size of the encoded data, and s/he also has no control over the memory handling.

Why don't we just use std::string (return type)?  That is:

	virtual std::string encode() const = 0;

Jun 6, 2012
#1 cnpeter...@gmail.com
Sorry, I see:
	/**
	 * @return Return the real memory size of an AMF object which doesn't contain
	 *         the flag size.
	 */
	virtual const boost::uint32_t    get_size() const = 0;

So forget this issue.