io_win32: add mapped_file::empty implementation

This commit is contained in:
Danny Robson 2016-04-27 17:05:46 +10:00
parent 57058ab20f
commit d0e0ee3981
2 changed files with 10 additions and 1 deletions

View File

@ -155,6 +155,13 @@ mapped_file::size (void) const
}
bool
mapped_file::empty (void) const
{
return size () == 0;
}
uint8_t*
mapped_file::begin (void)
{

View File

@ -46,7 +46,9 @@ namespace util {
const uint8_t* data (void) const;
uint8_t* data (void);
size_t size (void) const;
bool empty (void) const;
uint8_t* begin (void);
uint8_t* end (void);