| Issue 3: | The Function amf0_data_type::encode Is Not Practical to Use |
‹ Prev
2 of 2
|
| 1 person starred this issue and may be notified of changes. | Back to list |
/** * 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
|