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
bbe79251
Commit
bbe79251
authored
Nov 18, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formatting
parent
840fb8e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
skeletons/asn_codecs_prim.h
skeletons/asn_codecs_prim.h
+8
-8
No files found.
skeletons/asn_codecs_prim.h
View file @
bbe79251
...
...
@@ -12,7 +12,7 @@ extern "C" {
#endif
typedef
struct
ASN__PRIMITIVE_TYPE_s
{
uint8_t
*
buf
;
/* Buffer with consecutive primitive encoding bytes */
uint8_t
*
buf
;
/* Buffer with consecutive primitive encoding bytes */
size_t
size
;
/* Size of the buffer */
}
ASN__PRIMITIVE_TYPE_t
;
/* Do not use this type directly! */
...
...
@@ -24,15 +24,15 @@ der_type_encoder_f der_encode_primitive;
* A callback specification for the xer_decode_primitive() function below.
*/
enum
xer_pbd_rval
{
XPBD_SYSTEM_FAILURE
,
/* System failure (memory shortage, etc) */
XPBD_DECODER_LIMIT
,
/* Hit some decoder limitation or deficiency */
XPBD_BROKEN_ENCODING
,
/* Encoding of a primitive body is broken */
XPBD_NOT_BODY_IGNORE
,
/* Not a body format, but safe to ignore */
XPBD_BODY_CONSUMED
/* Body is recognized and consumed */
XPBD_SYSTEM_FAILURE
,
/* System failure (memory shortage, etc) */
XPBD_DECODER_LIMIT
,
/* Hit some decoder limitation or deficiency */
XPBD_BROKEN_ENCODING
,
/* Encoding of a primitive body is broken */
XPBD_NOT_BODY_IGNORE
,
/* Not a body format, but safe to ignore */
XPBD_BODY_CONSUMED
/* Body is recognized and consumed */
};
typedef
enum
xer_pbd_rval
(
xer_primitive_body_decoder_f
)(
const
asn_TYPE_descriptor_t
*
td
,
void
*
struct_ptr
,
const
void
*
chunk_buf
,
size_t
chunk_size
);
const
asn_TYPE_descriptor_t
*
td
,
void
*
struct_ptr
,
const
void
*
chunk_buf
,
size_t
chunk_size
);
/*
* Specific function to decode simple primitive types.
...
...
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