From ed2b956b38724440e02f1b51f7e0d92a5b764cf5 Mon Sep 17 00:00:00 2001 From: Reece Date: Fri, 21 Jan 2022 17:20:07 +0000 Subject: [PATCH] [*] Where'd my IsEmpty() go during refactoring? --- Include/Aurora/Memory/ByteBuffer_Utils.inl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Include/Aurora/Memory/ByteBuffer_Utils.inl b/Include/Aurora/Memory/ByteBuffer_Utils.inl index 20c67d05..8ce742e1 100644 --- a/Include/Aurora/Memory/ByteBuffer_Utils.inl +++ b/Include/Aurora/Memory/ByteBuffer_Utils.inl @@ -119,6 +119,12 @@ namespace Aurora::Memory return !IsEmpty() && !HasStreamError(); } + + bool ByteBuffer::IsEmpty() const + { + return !length || !base; + } + ByteBuffer &ByteBuffer::operator =(ByteBuffer && other) { Reset();