![]() |
Open 3D Engine GridMate API Reference
2205.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <PackedSize.h>
Public Types | |
typedef AZStd::size_t | SizeType |
Public Member Functions | |
PackedSize (SizeType bytes) | |
PackedSize (SizeType bytes, SizeType bits) | |
AZ_FORCE_INLINE SizeType | GetBytes () const |
AZ_FORCE_INLINE AZ::u8 | GetAdditionalBits () const |
AZ_FORCE_INLINE AZStd::size_t | GetTotalSizeInBits () const |
AZ_FORCE_INLINE SizeType | GetSizeInBytesRoundUp () const |
AZ_FORCE_INLINE void | IncrementBytes (SizeType bytes) |
AZ_FORCE_INLINE void | DecrementBytes (SizeType bytes) |
AZ_FORCE_INLINE void | IncrementBit () |
AZ_FORCE_INLINE void | IncrementBits (SizeType bits) |
AZ_FORCE_INLINE void | DecrementBits (SizeType bits) |
AZ_FORCE_INLINE void | operator+= (const PackedSize &other) |
AZ_FORCE_INLINE void | operator-= (const PackedSize &other) |
Represents an exact binary size in both bytes and any additional bits.
This is frequently need during bitpacking of Read- and WriteBuffers.