-
Notifications
You must be signed in to change notification settings - Fork 716
/
Copy pathmemorymanager.h
32 lines (20 loc) · 966 Bytes
/
memorymanager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#pragma once
///////////////////////////////////////////////////////////////////////////
//
// This API is provided as a simple interface for Microsoft SEAL library
// that can be PInvoked by .Net code.
//
///////////////////////////////////////////////////////////////////////////
#include "seal/c/defines.h"
#include <stdint.h>
SEAL_C_FUNC MemoryManager_GetPool1(int prof_opt, bool clear_on_destruction, void **pool_handle);
SEAL_C_FUNC MemoryManager_GetPool2(void **pool_handle);
SEAL_C_FUNC MemoryManager_SwitchProfile(void *new_profile);
SEAL_C_FUNC MMProf_CreateGlobal(void **profile);
SEAL_C_FUNC MMProf_CreateFixed(void *pool, void **profile);
SEAL_C_FUNC MMProf_CreateNew(void **profile);
SEAL_C_FUNC MMProf_CreateThreadLocal(void **profile);
SEAL_C_FUNC MMProf_GetPool(void *thisptr, void **pool_handle);
SEAL_C_FUNC MMProf_Destroy(void *thisptr);