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
4a06e6a8
Commit
4a06e6a8
authored
Jul 20, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add 135 encode-decode test
parent
51a1f3f6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
asn1c/tests/check-src/check64-135.-gen-OER.c
asn1c/tests/check-src/check64-135.-gen-OER.c
+15
-3
No files found.
asn1c/tests/check-src/check64-135.-gen-OER.c
View file @
4a06e6a8
...
@@ -13,9 +13,21 @@
...
@@ -13,9 +13,21 @@
#include <T.h>
#include <T.h>
int
main
()
{
int
main
()
{
T_t
t
;
uint8_t
tmpbuf
[
128
];
T_t
empty_t
;
T_t
*
decoded_t
=
0
;
/* "= 0" is important */
memset
(
&
t
,
0
,
sizeof
(
t
));
memset
(
&
empty_t
,
0
,
sizeof
(
empty_t
));
asn_enc_rval_t
er
=
oer_encode_to_buffer
(
&
asn_DEF_T
,
0
,
&
empty_t
,
tmpbuf
,
sizeof
(
tmpbuf
));
assert
(
er
.
encoded
!=
-
1
);
asn_dec_rval_t
dr
=
oer_decode
(
0
,
&
asn_DEF_T
,
(
void
**
)
&
decoded_t
,
tmpbuf
,
er
.
encoded
);
assert
(
dr
.
code
==
RC_OK
);
assert
(
dr
.
consumed
==
er
.
encoded
);
return
0
;
return
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