io: rename mapped_file end/begin to cend/cbegin
This commit is contained in:
parent
a6cc1e1e9d
commit
c9fae9f23a
4
io.cpp
4
io.cpp
@ -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
4
io.hpp
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user