コード例 #1
0
ファイル: BumpAllocator.cs プロジェクト: Paul1nh0/Singularity
        internal static UIntPtr AllocateFast(Thread thread,
                                             UIntPtr bytes, uint alignment)
        {
            BumpAllocatorThread mixinThread = MixinThread(thread);

            return(mixinThread.bumpAllocator.AllocateFast(bytes, alignment));
        }
コード例 #2
0
ファイル: BumpAllocator.cs プロジェクト: Paul1nh0/Singularity
        public static UIntPtr AllocateSlow(Thread currentThread,
                                           UIntPtr bytes, uint alignment)
        {
            BumpAllocatorThread mixinThread = MixinThread(currentThread);

            return(mixinThread.bumpAllocator.AllocateSlow(bytes, alignment,
                                                          currentThread));
        }
コード例 #3
0
ファイル: BumpAllocator.cs プロジェクト: Paul1nh0/Singularity
        public static UIntPtr Allocate(Thread thread,
                                       UIntPtr bytes, uint alignment)
        {
            BumpAllocatorThread mixinThread = MixinThread(thread);

            return(mixinThread.bumpAllocator.Allocate(bytes, alignment,
                                                      thread));
        }