io: rename mapped_file end/begin to cend/cbegin

This commit is contained in:
Danny Robson 2014-08-22 19:07:22 +10:00
parent a6cc1e1e9d
commit c9fae9f23a
2 changed files with 4 additions and 4 deletions

4
io.cpp
View File

@ -280,13 +280,13 @@ mapped_file::end (void) {
const uint8_t* const uint8_t*
mapped_file::begin (void) const { mapped_file::cbegin (void) const {
return data (); return data ();
} }
const uint8_t* const uint8_t*
mapped_file::end (void) const { mapped_file::cend (void) const {
return data () + size (); return data () + size ();
} }

4
io.hpp
View File

@ -141,8 +141,8 @@ namespace util {
uint8_t* begin (void); uint8_t* begin (void);
uint8_t* end (void); uint8_t* end (void);
const uint8_t* begin (void) const; const uint8_t* cbegin (void) const;
const uint8_t* end (void) const; const uint8_t* cend (void) const;
}; };
#endif #endif