#ifndef _MOOF_PACKET_HH_
#define _MOOF_PACKET_HH_
-/**
- * \file packet.hh
- * Classes for building and interpreting datagram packets.
- */
-
#include <cstring>
#include <stdexcept>
+#include <stdint.h>
#include <string>
#include <vector>
-
#ifndef PAGE_SIZE
#define PAGE_SIZE 4096
#endif
+/**
+ * \file packet.hh
+ * Classes for building and interpreting datagram packets.
+ */
+
namespace moof {
* Write some bytes to the packet.
* \param bytes The bytes.
* \param size The number of bytes.
- * return The number of bytes actually written.
+ * \return The number of bytes actually written.
*/
size_t write(const void* bytes, size_t size);
/**
* Get a pointer to an internal structure holding the serialized bytes
* of the packet.
- * return The pointer.
+ * \return The pointer.
*/
const char* bytes() const
{