Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
f4a1f580
Commit
f4a1f580
authored
Feb 09, 2018
by
Bi-Ruei, Chiu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add aper_encode_to_buffer()
parent
755538fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
skeletons/per_encoder.c
skeletons/per_encoder.c
+14
-0
No files found.
skeletons/per_encoder.c
View file @
f4a1f580
...
...
@@ -163,6 +163,20 @@ _uper_encode_flush_outp(asn_per_outp_t *po) {
return
po
->
output
(
po
->
tmpspace
,
buf
-
po
->
tmpspace
,
po
->
op_key
);
}
asn_enc_rval_t
aper_encode_to_buffer
(
const
asn_TYPE_descriptor_t
*
td
,
const
asn_per_constraints_t
*
constraints
,
const
void
*
sptr
,
void
*
buffer
,
size_t
buffer_size
)
{
enc_to_buf_arg
key
;
key
.
buffer
=
buffer
;
key
.
left
=
buffer_size
;
if
(
td
)
ASN_DEBUG
(
"Encoding
\"
%s
\"
using ALIGNED PER"
,
td
->
name
);
return
aper_encode
(
td
,
constraints
,
sptr
,
encode_to_buffer_cb
,
&
key
);
}
ssize_t
aper_encode_to_new_buffer
(
const
asn_TYPE_descriptor_t
*
td
,
const
asn_per_constraints_t
*
constraints
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment