-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGst.Allocator.html
89 lines (85 loc) · 4.39 KB
/
Gst.Allocator.html
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>Gst.Allocator</title>
<link rel="stylesheet" type="text/css" href="C.css">
<script type="text/javascript" src="jquery.js"></script><script type="text/javascript" src="jquery.syntax.js"></script><script type="text/javascript" src="yelp.js"></script>
</head>
<body><div class="page" role="main">
<div class="header"><div class="trails" role="navigation"><div class="trail">
<a class="trail" href="index.html" title="Index">Index</a> » </div></div></div>
<div class="body">
<div class="hgroup"><h1 class="title"><span class="title">Gst.Allocator</span></h1></div>
<div class="region">
<div class="contents">
<div class="synopsis"><div class="inner"><div class="region"><div class="contents"><div class="code"><pre class="contents ">const Gst = imports.gi.Gst;
let allocator = new Gst.Allocator();
</pre></div></div></div></div></div>
<p class="p">Memory is usually created by allocators with a <span class=" link"><a href="Gst.alloc.html" title="Gst.alloc">Gst.alloc</a></span>
method call. When NULL is used as the allocator, the default allocator will
be used.</p>
<p class="p">New allocators can be registered with <span class=" link"><a href="Gst.register.html" title="Gst.register">Gst.register</a></span>.
Allocators are identified by name and can be retrieved with
<span class=" link"><a href="Gst.find.html" title="Gst.find">Gst.find</a></span>. <span class=" link"><a href="Gst.set_default.html" title="Gst.set_default">Gst.set_default</a></span> can be used to change the
default allocator.</p>
<p class="p">New memory can be created with <span class=" link"><a href="Gst.new_wrapped.html" title="Gst.new_wrapped">Gst.new_wrapped</a></span> that wraps the memory
allocated elsewhere.</p>
<p class="p">Last reviewed on 2012-07-09 (0.11.3)</p>
<div class="synopsis"><div class="inner">
<div class="title title-synopsis"><h2><span class="title">Hierarchy</span></h2></div>
<div class="region"><div class="contents"><div class="tree"><div class="inner"><div class="region"><ul class="tree"><li class="tree">
<div>
<span class=" code">GObject.Object</span>
</div>
<ul class="tree"><li class="tree">
<div>
<span class=" code">GObject.InitiallyUnowned</span>
</div>
<ul class="tree"><li class="tree">
<div>
<span class=" code">Gst.Object</span>
</div>
<ul class="tree"><li class="tree"><div>
<span class=" code">Gst.Allocator</span>
</div></li></ul>
</li></ul>
</li></ul>
</li></ul></div></div></div></div></div>
</div></div>
<div class="links topiclinks"><div class="inner">
<div class="title title-links"><h2><span class="title">Methods</span></h2></div>
<div class="region"><ul>
<li class="links "><a href="Gst.Allocator.alloc.html" title="Gst.Allocator.prototype.alloc">Gst.Allocator.prototype.alloc</a></li>
<li class="links "><a href="Gst.Allocator.free.html" title="Gst.Allocator.prototype.free">Gst.Allocator.prototype.free</a></li>
<li class="links "><a href="Gst.Allocator.set_default.html" title="Gst.Allocator.prototype.set_default">Gst.Allocator.prototype.set_default</a></li>
</ul></div>
</div></div>
<div class="links topiclinks"><div class="inner">
<div class="title title-links"><h2><span class="title">Functions</span></h2></div>
<div class="region"><ul>
<li class="links "><a href="Gst.Allocator.find.html" title="find">find</a></li>
<li class="links "><a href="Gst.Allocator.register.html" title="register">register</a></li>
</ul></div>
</div></div>
<div class="links topiclinks"><div class="inner">
<div class="title title-links"><h2><span class="title">Virtual functions</span></h2></div>
<div class="region"><ul>
<li class="links "><a href="Gst.Allocator-alloc.html" title="Gst.Allocator::alloc">Gst.Allocator::alloc</a></li>
<li class="links "><a href="Gst.Allocator-free.html" title="Gst.Allocator::free">Gst.Allocator::free</a></li>
</ul></div>
</div></div>
</div>
<div class="sect sect-links" role="navigation">
<div class="hgroup"></div>
<div class="contents"><div class="links guidelinks"><div class="inner">
<div class="title"><h2><span class="title">More Information</span></h2></div>
<div class="region"><ul><li class="links "><a href="index.html" title="Index">Index</a></li></ul></div>
</div></div></div>
</div>
</div>
<div class="clear"></div>
</div>
<div class="footer"></div>
</div></body>
</html>