#pragma once #include "pch.h" class BitUtilities { public: template __forceinline static void SetBits(T& dst, uint8_t src) { dst = (dst & ~(0xFF << bitNumber)) | (src << bitNumber); } template __forceinline static uint8_t GetBits(T value) { return (uint8_t)(value >> bitNumber); } };