📄 secalloc.cpp
字号:
/************************************************** Secure Memory Allocator Source File ** (C) 1999-2002 The Botan Project **************************************************/#include <botan/secalloc.h>namespace Botan {/************************************************** Allocation **************************************************/void* SecureAllocator::allocate(u32bit n) const { if(n == 0) return 0; void* ptr = alloc_block(n); if(!ptr) throw Memory_Exhaustion(); return ptr; }/************************************************** Deallocation **************************************************/void SecureAllocator::deallocate(void* ptr, u32bit n) const { if(ptr == 0 || n == 0) return; dealloc_block(ptr, n); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -