src/common/chunk.h
changeset 53 ae406f4957d5
parent 52 72a52d59ee9f
child 54 f860e6f94787
equal deleted inserted replaced
52:72a52d59ee9f 53:ae406f4957d5
    62 	 *
    62 	 *
    63 	 * This method must:
    63 	 * This method must:
    64 	 *   - reserve room for its serialized representation in the input buffer
    64 	 *   - reserve room for its serialized representation in the input buffer
    65 	 *   - serialize itself in this reserved room
    65 	 *   - serialize itself in this reserved room
    66 	 */
    66 	 */
    67 	virtual void add_to (Buffer *buffer) const = 0;
    67 	virtual void addTo (Buffer *buffer) const = 0;
    68 	/**
    68 	/**
    69 	 * \param buffer the buffer from which the protocol header must
    69 	 * \param buffer the buffer from which the protocol header must
    70 	 *        deserialize itself.
    70 	 *        deserialize itself.
    71 	 *
    71 	 *
    72 	 */
    72 	 */
    73 	virtual void peek_from (Buffer const *buffer) = 0;
    73 	virtual void peekFrom (Buffer const *buffer) = 0;
    74 	/**
    74 	/**
    75 	 * \param buffer the buffer from which the protocol header
    75 	 * \param buffer the buffer from which the protocol header
    76 	 *        must remove itself.
    76 	 *        must remove itself.
    77 	 *
    77 	 *
    78 	 * This method must remove its serialized representation 
    78 	 * This method must remove its serialized representation 
    79 	 * from the input buffer. This method does not need to deserialize
    79 	 * from the input buffer. This method does not need to deserialize
    80 	 * the data itself.
    80 	 * the data itself.
    81 	 */
    81 	 */
    82 	virtual void remove_from (Buffer *buffer) = 0;
    82 	virtual void removeFrom (Buffer *buffer) = 0;
    83 };
    83 };
    84 
    84 
    85 std::ostream& operator<< (std::ostream& os, Chunk const& chunk);
    85 std::ostream& operator<< (std::ostream& os, Chunk const& chunk);
    86 
    86 
    87 }; // namespace ns3
    87 }; // namespace ns3