1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Add OutputMemoryStream and port most classes to use it

This commit is contained in:
Matias Fontanini
2015-12-26 06:30:00 -08:00
parent 9750f46c6d
commit 02e2b278de
34 changed files with 438 additions and 418 deletions

View File

@@ -49,7 +49,7 @@ public:
/**
* \brief Exception thrown when an option is not found.
*/
class option_not_found : exception_base {
class option_not_found : public exception_base {
public:
// try to avoid allocations by doing this.
const char* what() const throw() {
@@ -67,6 +67,16 @@ public:
}
};
/**
* \brief Exception thrown when serializing a packet fails.
*/
class serialization_error : public exception_base {
public:
const char* what() const throw() {
return "Serialization error";
}
};
/**
* \brief Exception thrown when a PDU is not found when using PDU::rfind_pdu.
*/