summaryrefslogtreecommitdiff
path: root/ace/CLASSIX/OS.i
blob: b32026eec803f25353d409b7ab7cbf6c3c70f761 (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
/* -*- C++ -*- */
// $Id$

ACE_INLINE
ACE_CLASSIX_Msg::ACE_CLASSIX_Msg(void)
{
    // Make a null-filled message
    this->msg_.flags = 0;
    this->msg_.bodySize = 0;
    this->msg_.bodyAddr = 0;
    this->msg_.annexAddr = 0;
    this->msg_.seqNum = 0;
}

ACE_INLINE
ACE_CLASSIX_Msg::ACE_CLASSIX_Msg(const void* theBuf, int theLen)
{
    this->msg_.flags = 0;
    this->msg_.annexAddr = 0;
    this->msg_.seqNum = 0;

    this->msg_.bodySize = theLen;
    this->msg_.bodyAddr = (VmAddr) theBuf;
}

ACE_INLINE
void
ACE_CLASSIX_Msg::set(const void* theBuf, int theLen)
{
    this->msg_.bodySize = theLen;
    this->msg_.bodyAddr = (VmAddr) theBuf;
}

ACE_INLINE
KnMsgDesc*
ACE_CLASSIX_Msg::get(void)
{
    return &this->msg_;
}