blob: d6519c8a7050b9f63f4f44e0f5ba29d58c814aec (
plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*
*/
#pragma once
//
//
//
#include "suballocator.h"
//
//
//
typedef enum skc_mem_flags_e {
SKC_MEM_FLAGS_READ_WRITE,
SKC_MEM_FLAGS_WRITE_ONLY,
SKC_MEM_FLAGS_READ_ONLY
} skc_mem_flags_e;
//
//
//
struct skc_allocator_host
{
#if 0
struct {
// in case we want to instrument perm allocs
} perm;
#endif
struct {
struct skc_suballocator suballocator;
skc_uchar * extent;
} temp;
};
//
//
//
void
skc_allocator_host_create(struct skc_runtime * const runtime);
void
skc_allocator_host_dispose(struct skc_runtime * const runtime);
//
//
//
|