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
cd8f1e03
Commit
cd8f1e03
authored
Nov 06, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uper_encode() with NULL callback to ignore output and return the number of bits
parent
1a49ced9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
skeletons/per_encoder.c
skeletons/per_encoder.c
+9
-1
No files found.
skeletons/per_encoder.c
View file @
cd8f1e03
...
...
@@ -4,6 +4,14 @@
static
int
_uper_encode_flush_outp
(
asn_per_outp_t
*
po
);
static
int
ignore_output
(
const
void
*
data
,
size_t
size
,
void
*
app_key
)
{
(
void
)
data
;
(
void
)
size
;
(
void
)
app_key
;
return
0
;
}
asn_enc_rval_t
uper_encode
(
const
asn_TYPE_descriptor_t
*
td
,
const
asn_per_constraints_t
*
constraints
,
const
void
*
sptr
,
...
...
@@ -20,7 +28,7 @@ uper_encode(const asn_TYPE_descriptor_t *td,
po
.
buffer
=
po
.
tmpspace
;
po
.
nboff
=
0
;
po
.
nbits
=
8
*
sizeof
(
po
.
tmpspace
);
po
.
output
=
cb
;
po
.
output
=
cb
?
cb
:
ignore_output
;
po
.
op_key
=
app_key
;
po
.
flushed_bytes
=
0
;
...
...
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