line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
MODULE = MsgPack::Raw PACKAGE = MsgPack::Raw::Packer |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
Packer |
4
|
|
|
|
|
|
|
new (class) |
5
|
|
|
|
|
|
|
SV *class |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
PREINIT: |
8
|
|
|
|
|
|
|
msgpack_raw_packer *self; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
CODE: |
11
|
13
|
|
|
|
|
|
Newxz (self, 1, msgpack_raw_packer); |
12
|
13
|
|
|
|
|
|
msgpack_packer_init (&self->packer, self, msgpack_raw_packer_write); |
13
|
|
|
|
|
|
|
|
14
|
13
|
|
|
|
|
|
RETVAL = self; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
OUTPUT: RETVAL |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
SV * |
19
|
|
|
|
|
|
|
pack (self, content) |
20
|
|
|
|
|
|
|
Packer self |
21
|
|
|
|
|
|
|
SV *content |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
CODE: |
24
|
|
|
|
|
|
|
// create the output buffer |
25
|
60
|
|
|
|
|
|
self->data = sv_2mortal (newSV (64)); |
26
|
60
|
|
|
|
|
|
SvPOK_only (self->data); |
27
|
60
|
|
|
|
|
|
encode_msgpack (self, content); |
28
|
|
|
|
|
|
|
|
29
|
60
|
|
|
|
|
|
SvREFCNT_inc (self->data); |
30
|
60
|
|
|
|
|
|
RETVAL = self->data; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
OUTPUT: RETVAL |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
void |
35
|
|
|
|
|
|
|
DESTROY (self) |
36
|
|
|
|
|
|
|
Packer self |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
CODE: |
39
|
13
|
|
|
|
|
|
Safefree (self); |