-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRawMessage_8hpp-source.html
More file actions
84 lines (74 loc) · 5.76 KB
/
RawMessage_8hpp-source.html
File metadata and controls
84 lines (74 loc) · 5.76 KB
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
<html>
<head>
<meta name="keywords" content="0MQ, ZeroMQ, C++, multipart, message, library, open source, ZmqMessage" />
<meta name="description" content="ZmqMessage is free open source C++ library for sending and receiving ZeroMQ multipart messages"/>
<meta name="google-site-verification" content="0EvtpfjffSrc0fDV9ubKQVfq3IV55KY5d59hXHg9M34" />
<title>ZmqMessage: include/zmqmessage/RawMessage.hpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<style>
/* must override a few items to get the style background color */
</style>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-25607292-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<table class="zm_headbar">
<tr>
<td>
<span><a href="index.html">Overview</a></span>
<span><a href="zm_tutorial.html">Tutorial</a></span>
<span><a href="namespaceZmqMessage.html">API reference</a></span>
<span><a href="examples.html">Examples</a></span>
<span><a href="zm_build.html">Build</a></span>
<span><a href="https://github.com/zmqmessage/zmqmessage/">Download</a></span>
</td>
<td align="right" class="zm_greynote">ZmqMessage 0.1 - 21 Oct 2011</td>
</tr></table>
<hr style="height: 3px;">
<!-- Generated by Doxygen 1.4.7 -->
<h1>include/zmqmessage/RawMessage.hpp</h1><a href="RawMessage_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef ZMQMESSAGE_RAWMESSAGE_HPP_</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define ZMQMESSAGE_RAWMESSAGE_HPP_</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a>00012 <span class="keyword">namespace </span>ZmqMessage
<a name="l00013"></a>00013 {
<a name="l00023"></a><a class="code" href="structZmqMessage_1_1RawMessage.html">00023</a> <span class="keyword">struct </span><a class="code" href="structZmqMessage_1_1RawMessage.html">RawMessage</a>
<a name="l00024"></a>00024 {
<a name="l00025"></a>00025 <span class="keyword">union</span>
<a name="l00026"></a>00026 <span class="keyword"> </span>{
<a name="l00027"></a><a class="code" href="structZmqMessage_1_1RawMessage.html#50bc243d007f7dcd8c4c71c64b09113e">00027</a> <span class="keywordtype">void</span>* <a class="code" href="structZmqMessage_1_1RawMessage.html#50bc243d007f7dcd8c4c71c64b09113e">ptr</a>;
<a name="l00028"></a><a class="code" href="structZmqMessage_1_1RawMessage.html#b5111d86e5a5be0d366771c4875308ce">00028</a> <span class="keyword">const</span> <span class="keywordtype">void</span>* <a class="code" href="structZmqMessage_1_1RawMessage.html#b5111d86e5a5be0d366771c4875308ce">cptr</a>;
<a name="l00029"></a>00029 } <a class="code" href="structZmqMessage_1_1RawMessage.html#1232cd2fa1d68c7e434ceed7fc65f272">data</a>;
<a name="l00030"></a><a class="code" href="structZmqMessage_1_1RawMessage.html#12d614575c8474013f3c65f002070270">00030</a> size_t <a class="code" href="structZmqMessage_1_1RawMessage.html#12d614575c8474013f3c65f002070270">sz</a>;
<a name="l00031"></a><a class="code" href="structZmqMessage_1_1RawMessage.html#1ac79d3acd3d351ae83471c35dd46a5c">00031</a> zmq::free_fn* <a class="code" href="structZmqMessage_1_1RawMessage.html#1ac79d3acd3d351ae83471c35dd46a5c">deleter</a>;
<a name="l00032"></a>00032
<a name="l00037"></a><a class="code" href="structZmqMessage_1_1RawMessage.html#010efa6548c4b6aab81fd6d33876515d">00037</a> <span class="keyword">inline</span> <a class="code" href="structZmqMessage_1_1RawMessage.html#010efa6548c4b6aab81fd6d33876515d">RawMessage</a>(<span class="keywordtype">void</span>* data_p, size_t sz_p, zmq::free_fn* deleter_p) :
<a name="l00038"></a>00038 <a class="code" href="structZmqMessage_1_1RawMessage.html#12d614575c8474013f3c65f002070270">sz</a>(sz_p), <a class="code" href="structZmqMessage_1_1RawMessage.html#1ac79d3acd3d351ae83471c35dd46a5c">deleter</a>(deleter_p)
<a name="l00039"></a>00039 {
<a name="l00040"></a>00040 <a class="code" href="structZmqMessage_1_1RawMessage.html#1232cd2fa1d68c7e434ceed7fc65f272">data</a>.ptr = data_p;
<a name="l00041"></a>00041 }
<a name="l00042"></a>00042
<a name="l00046"></a><a class="code" href="structZmqMessage_1_1RawMessage.html#00c3e9ef44595a5fa3b3933069e94149">00046</a> <span class="keyword">inline</span> <a class="code" href="structZmqMessage_1_1RawMessage.html#010efa6548c4b6aab81fd6d33876515d">RawMessage</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* data_p, size_t sz_p) :
<a name="l00047"></a>00047 <a class="code" href="structZmqMessage_1_1RawMessage.html#12d614575c8474013f3c65f002070270">sz</a>(sz_p), <a class="code" href="structZmqMessage_1_1RawMessage.html#1ac79d3acd3d351ae83471c35dd46a5c">deleter</a>(0)
<a name="l00048"></a>00048 {
<a name="l00049"></a>00049 <a class="code" href="structZmqMessage_1_1RawMessage.html#1232cd2fa1d68c7e434ceed7fc65f272">data</a>.cptr = data_p;
<a name="l00050"></a>00050 }
<a name="l00051"></a>00051 };
<a name="l00052"></a>00052 }
<a name="l00053"></a>00053
<a name="l00054"></a>00054 <span class="preprocessor">#endif </span><span class="comment">/* ZMQMESSAGE_RAWMESSAGE_HPP_ */</span>
</pre></div>
<hr style="height: 3px;">
<div class="zm_greynote">
ZmqMessage 0.1 — open source software, <a href="mailto:support@zmqmessage.org">support@zmqmessage.org</a>
</div>
</body>
</html>