Show
Ignore:
Timestamp:
06/10/09 08:25:38 (3 years ago)
Author:
rakshasa
Message:

* Added flag to bencode when unordered bencoded strings are read.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/libtorrent/src/torrent/object.h

    r1080 r1094  
    7676  static const uint32_t mask_public   = ~mask_internal; 
    7777 
     78  static const uint32_t flag_unordered = 0x100;    // bencode dictionary was not sorted 
     79 
    7880  enum type_type { 
    7981    TYPE_NONE, 
     
    109111  void                set_flags(uint32_t f)                   { m_flags |= f & mask_public; } 
    110112  void                unset_flags(uint32_t f)                 { m_flags &= ~(f & mask_public); } 
     113 
     114  void                set_internal_flags(uint32_t f)          { m_flags |= f & (mask_internal & ~mask_type); } 
     115  void                unset_internal_flags(uint32_t f)        { m_flags &= ~(f & (mask_internal & ~mask_type)); } 
    111116 
    112117  // Add functions for setting/clearing the public flags.