src/common/packet-metadata.h
changeset 3553 065488d0420c
parent 3304 6ea20d776d55
child 3754 ee45d2d71f01
equal deleted inserted replaced
3552:b822851cb95d 3553:065488d0420c
   123     uint32_t m_offset;
   123     uint32_t m_offset;
   124     bool m_hasReadTail;
   124     bool m_hasReadTail;
   125   };
   125   };
   126 
   126 
   127   static void Enable (void);
   127   static void Enable (void);
       
   128   static void EnableChecking (void);
   128 
   129 
   129   inline PacketMetadata (uint32_t uid, uint32_t size);
   130   inline PacketMetadata (uint32_t uid, uint32_t size);
   130   inline PacketMetadata (PacketMetadata const &o);
   131   inline PacketMetadata (PacketMetadata const &o);
   131   inline PacketMetadata &operator = (PacketMetadata const& o);
   132   inline PacketMetadata &operator = (PacketMetadata const& o);
   132   inline ~PacketMetadata ();
   133   inline ~PacketMetadata ();
   277   static struct PacketMetadata::Data *Allocate (uint32_t n);
   278   static struct PacketMetadata::Data *Allocate (uint32_t n);
   278   static void Deallocate (struct PacketMetadata::Data *data);
   279   static void Deallocate (struct PacketMetadata::Data *data);
   279   
   280   
   280   static DataFreeList m_freeList;
   281   static DataFreeList m_freeList;
   281   static bool m_enable;
   282   static bool m_enable;
       
   283   static bool m_enableChecking;
   282 
   284 
   283   // set to true when adding metadata to a packet is skipped because
   285   // set to true when adding metadata to a packet is skipped because
   284   // m_enable is false; used to detect enabling of metadata in the
   286   // m_enable is false; used to detect enabling of metadata in the
   285   // middle of a simulation, which isn't allowed.
   287   // middle of a simulation, which isn't allowed.
   286   static bool m_metadataSkipped;
   288   static bool m_metadataSkipped;