📄 truncate.hh
字号:
// -*- mode: c++; c-basic-offset: 4 -*-#ifndef CLICK_TRUNCATE_HH#define CLICK_TRUNCATE_HH#include <click/element.hh>CLICK_DECLS/* * =c * Truncate(MAX) * =s encapsulation * strips bytes from the back of packets * =d * Deletes the last MAX bytes from each packet. * =a Strip */class Truncate : public Element { public: Truncate(); ~Truncate(); const char *class_name() const { return "Truncate"; } const char *processing() const { return AGNOSTIC; } int configure(Vector<String> &, ErrorHandler *); Packet *simple_action(Packet *); private: unsigned _nbytes;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -