-
Notifications
You must be signed in to change notification settings - Fork 709
/
memorypoolhandle.h
38 lines (23 loc) · 1.21 KB
/
memorypoolhandle.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
33
34
35
36
37
38
// 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 MemoryPoolHandle_Create1(void **handle);
SEAL_C_FUNC MemoryPoolHandle_Create2(void *otherptr, void **handle);
SEAL_C_FUNC MemoryPoolHandle_Destroy(void *thisptr);
SEAL_C_FUNC MemoryPoolHandle_Set(void *thisptr, void *assignptr);
SEAL_C_FUNC MemoryPoolHandle_Global(void **handle);
SEAL_C_FUNC MemoryPoolHandle_ThreadLocal(void **handle);
SEAL_C_FUNC MemoryPoolHandle_New(bool clear_on_destruction, void **handle);
SEAL_C_FUNC MemoryPoolHandle_PoolCount(void *thisptr, uint64_t *count);
SEAL_C_FUNC MemoryPoolHandle_AllocByteCount(void *thisptr, uint64_t *count);
SEAL_C_FUNC MemoryPoolHandle_UseCount(void *thisptr, long *count);
SEAL_C_FUNC MemoryPoolHandle_IsInitialized(void *thisptr, bool *result);
SEAL_C_FUNC MemoryPoolHandle_Equals(void *thisptr, void *otherptr, bool *result);