io/FileDescriptor: use std::size_t
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 Max Kellermann <max.kellermann@gmail.com>
|
||||
* Copyright 2012-2020 Max Kellermann <max.kellermann@gmail.com>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -32,6 +32,7 @@
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdint>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
@@ -289,7 +290,7 @@ FileDescriptor::GetSize() const noexcept
|
||||
}
|
||||
|
||||
void
|
||||
FileDescriptor::FullRead(void *_buffer, size_t length)
|
||||
FileDescriptor::FullRead(void *_buffer, std::size_t length)
|
||||
{
|
||||
auto buffer = (uint8_t *)_buffer;
|
||||
|
||||
@@ -307,7 +308,7 @@ FileDescriptor::FullRead(void *_buffer, size_t length)
|
||||
}
|
||||
|
||||
void
|
||||
FileDescriptor::FullWrite(const void *_buffer, size_t length)
|
||||
FileDescriptor::FullWrite(const void *_buffer, std::size_t length)
|
||||
{
|
||||
auto buffer = (const uint8_t *)_buffer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user