forked from LK8000/LK8000
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fanet : factorize duplicated code...
- Loading branch information
Showing
5 changed files
with
67 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* LK8000 Tactical Flight Computer - WWW.LK8000.IT | ||
* Released under GNU/GPL License v.2 or later | ||
* See CREDITS.TXT file for authors and copyrights | ||
* | ||
* File: payload.h | ||
* Author: Gerald Eichler | ||
*/ | ||
#ifndef _devices_fanet_payload_h_ | ||
#define _devices_fanet_payload_h_ | ||
#include <cstdint> | ||
#include <vector> | ||
|
||
struct payload_t : public std::vector<uint8_t> { | ||
using base_class = std::vector<uint8_t>; | ||
using base_class::base_class; | ||
|
||
using back_insert_iterator = std::back_insert_iterator<payload_t>; | ||
|
||
back_insert_iterator back_inserter() { | ||
return std::back_inserter(*this); | ||
} | ||
}; | ||
|
||
#endif // _devices_fanet_payload_h_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters