io_win32: add mapped_file::empty implementation
This commit is contained in:
parent
57058ab20f
commit
d0e0ee3981
@ -155,6 +155,13 @@ mapped_file::size (void) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool
|
||||||
|
mapped_file::empty (void) const
|
||||||
|
{
|
||||||
|
return size () == 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
uint8_t*
|
uint8_t*
|
||||||
mapped_file::begin (void)
|
mapped_file::begin (void)
|
||||||
{
|
{
|
||||||
|
@ -46,7 +46,9 @@ namespace util {
|
|||||||
|
|
||||||
const uint8_t* data (void) const;
|
const uint8_t* data (void) const;
|
||||||
uint8_t* data (void);
|
uint8_t* data (void);
|
||||||
size_t size (void) const;
|
|
||||||
|
size_t size (void) const;
|
||||||
|
bool empty (void) const;
|
||||||
|
|
||||||
uint8_t* begin (void);
|
uint8_t* begin (void);
|
||||||
uint8_t* end (void);
|
uint8_t* end (void);
|
||||||
|
Loading…
Reference in New Issue
Block a user