~ubuntu-branches/debian/lenny/libtorrent/lenny

« back to all changes in this revision

Viewing changes to src/data/chunk_iterator.h

  • Committer: Bazaar Package Importer
  • Author(s): James Vega
  • Date: 2008-04-15 21:38:37 UTC
  • mfrom: (4.1.6 hardy)
  • Revision ID: james.westby@ubuntu.com-20080415213837-znilhi7a44yec99u
Tags: 0.11.9-1.1
* Non-maintainer upload.
* Fix FTBFS with gcc-4.3.  (Closes: #420920)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// libTorrent - BitTorrent library
2
 
// Copyright (C) 2005-2006, Jari Sundell
 
2
// Copyright (C) 2005-2007, Jari Sundell
3
3
//
4
4
// This program is free software; you can redistribute it and/or modify
5
5
// it under the terms of the GNU General Public License as published by
47
47
  
48
48
  Chunk::data_type    data();
49
49
 
 
50
  MemoryChunk*        memory_chunk() { return &m_iterator->chunk(); }
 
51
 
 
52
  uint32_t            memory_chunk_first() const { return m_first - m_iterator->position(); }
 
53
  uint32_t            memory_chunk_last() const { return m_last - m_iterator->position(); }
 
54
 
50
55
  bool                next();
51
56
  bool                used(uint32_t length);
52
57