src/common/buffer.h
changeset 4708 b251fb79becb
parent 4518 31f2881aa214
child 5842 e5571955464f
equal deleted inserted replaced
4707:3a2013cbb81f 4708:b251fb79becb
   485   Buffer CreateFullCopy (void) const;
   485   Buffer CreateFullCopy (void) const;
   486 
   486 
   487   int32_t GetCurrentStartOffset (void) const;
   487   int32_t GetCurrentStartOffset (void) const;
   488   int32_t GetCurrentEndOffset (void) const;
   488   int32_t GetCurrentEndOffset (void) const;
   489 
   489 
       
   490   /** 
       
   491    * Copy the specified amount of data from the buffer to the given output stream.
       
   492    * 
       
   493    * @param os the output stream
       
   494    * @param size the maximum amount of bytes to copy. If zero, nothing is copied.
       
   495    */
   490   void CopyData (std::ostream *os, uint32_t size) const;
   496   void CopyData (std::ostream *os, uint32_t size) const;
   491 
   497 
   492   Buffer (Buffer const &o);
   498   Buffer (Buffer const &o);
   493   Buffer &operator = (Buffer const &o);
   499   Buffer &operator = (Buffer const &o);
   494   Buffer ();
   500   Buffer ();