29 #include YFM_YSLib_Core_YDevice
34 using namespace Drawing;
43 return GetBufferPtr();
50 std::copy_n(buf,
GetAreaOf(GetSize()), GetCheckedBufferPtr());
yconstfn auto GetAreaOf(const Size &s) ynothrow-> decltype(s.Width *s.Height)
取面积。
#define ynothrow
YSLib 无异常抛出保证:若支持 noexcept 关键字, 指定特定的 noexcept 异常规范。
#define YAssertNonnull(_expr)