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
07f8c3ea
Commit
07f8c3ea
authored
Nov 15, 2017
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add asn_encode* and other encoders
parent
686f38bf
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
481 additions
and
73 deletions
+481
-73
doc/docsrc/asn1c-usage.tex
doc/docsrc/asn1c-usage.tex
+461
-70
doc/docsrc/asn_dec_rval.inc
doc/docsrc/asn_dec_rval.inc
+3
-3
doc/docsrc/asn_enc_rval.inc
doc/docsrc/asn_enc_rval.inc
+17
-0
No files found.
doc/docsrc/asn1c-usage.tex
View file @
07f8c3ea
This diff is collapsed.
Click to expand it.
doc/docsrc/asn_dec_rval.inc
View file @
07f8c3ea
...
...
@@ -5,7 +5,7 @@ may contain partially decoded data. This data may be useful for debugging
Don
'
t
forget
to
discard
the
unused
partially
decoded
data
by
calling
\code
{
ASN_STRUCT_FREE
()}
or
\code
{
ASN_STRUCT_RESET
()}
.
The
return
value
is
returned
in
a
compound
structure
:
The
function
returns
a
compound
structure
:
\begin
{
codesample
}
typedef
struct
{
enum
{
...
...
@@ -17,7 +17,7 @@ typedef struct {
}
asn_dec_rval_t
;
\end
{
codesample
}
The
\code
{
.
code
}
member
specifies
the
decoding
outcome
.
\noindent
{}
The
\code
{
.
code
}
member
specifies
the
decoding
outcome
.
\begin
{
tabular
}[
h
!
]{
ll
}
\texttt
{
RC\_OK
}
&
Decoded
successfully
and
completely
\\
...
...
@@ -25,6 +25,6 @@ The \code{.code} member specifies the decoding outcome.
\texttt
{
RC\_FAIL
}
&
Failed
for
good
\end
{
tabular
}
The
\code
{
.
consumed
}
member
specifies
the
amount
of
\code
{
buffer
}
data
\noindent
{}
The
\code
{
.
consumed
}
member
specifies
the
amount
of
\code
{
buffer
}
data
that
was
used
during
parsing
,
irrespectively
of
the
\code
{
.
code
}
.
doc/docsrc/asn_enc_rval.inc
0 → 100644
View file @
07f8c3ea
The
function
returns
a
compound
structure
:
\begin
{
codesample
}
typedef
struct
{
ssize_t
encoded
;
const
asn_TYPE_descriptor_t
*
failed_type
;
const
void
*
structure_ptr
;
}
asn_enc_rval_t
;
\end
{
codesample
}
\noindent
{}
In
case
of
unsuccessful
encoding
,
the
\code
{
.
encoded
}
member
is
set
to
-
1
and
the
other
members
of
the
compound
structure
point
to
where
the
encoding
has
failed
to
proceed
further
.
In
case
encoding
is
successful
,
the
\code
{
.
encoded
}
member
specifies
the
size
of
the
serialized
output
.
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