mirror of https://github.com/axmolengine/axmol.git
Update yasio to latest
This commit is contained in:
parent
86ab2fe995
commit
2305bfeced
|
@ -194,9 +194,9 @@ public:
|
||||||
size_t bsize() const { return _buffer.size(); }
|
size_t bsize() const { return _buffer.size(); }
|
||||||
|
|
||||||
/** Resizes the count of indices in the container. */
|
/** Resizes the count of indices in the container. */
|
||||||
void resize(size_t size) { _buffer.resize(size * _stride); }
|
void resize(size_t size) {_buffer.resize(static_cast<yasio::byte_buffer::size_type>(size * _stride)); }
|
||||||
/** Resizes the container in bytes. */
|
/** Resizes the container in bytes. */
|
||||||
void bresize(size_t size) { _buffer.resize(size); }
|
void bresize(size_t size) { _buffer.resize(static_cast<yasio::byte_buffer::size_type>(size)); }
|
||||||
|
|
||||||
/** Returns true if the container is empty. Otherwise, false. */
|
/** Returns true if the container is empty. Otherwise, false. */
|
||||||
bool empty() const { return _buffer.empty(); }
|
bool empty() const { return _buffer.empty(); }
|
||||||
|
|
|
@ -22,7 +22,7 @@ namespace axstd
|
||||||
{
|
{
|
||||||
using byte_buffer = yasio::byte_buffer;
|
using byte_buffer = yasio::byte_buffer;
|
||||||
using sbyte_buffer = yasio::sbyte_buffer;
|
using sbyte_buffer = yasio::sbyte_buffer;
|
||||||
template <typename _Elem, typename _Alloc = yasio::default_buffer_allocator<_Elem>>
|
template <typename _Elem, typename _Alloc = yasio::buffer_allocator<_Elem>>
|
||||||
using pod_vector = yasio::pod_vector<_Elem, _Alloc>;
|
using pod_vector = yasio::pod_vector<_Elem, _Alloc>;
|
||||||
|
|
||||||
/* make_unique_for_overwrite since c++20, but not all platformm support */
|
/* make_unique_for_overwrite since c++20, but not all platformm support */
|
||||||
|
|
Loading…
Reference in New Issue