mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-11-23 02:06:55 +01:00
20 lines
427 B
C#
20 lines
427 B
C#
|
using System;
|
|||
|
|
|||
|
namespace ARMeilleure.Common
|
|||
|
{
|
|||
|
static class BitMapPool
|
|||
|
{
|
|||
|
public static BitMap Allocate(int initialCapacity)
|
|||
|
{
|
|||
|
BitMap result = ThreadStaticPool<BitMap>.Instance.Allocate();
|
|||
|
result.Reset(initialCapacity);
|
|||
|
return result;
|
|||
|
}
|
|||
|
|
|||
|
public static void Release()
|
|||
|
{
|
|||
|
ThreadStaticPool<BitMap>.Instance.Clear();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|