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
ed774b9a
Commit
ed774b9a
authored
Dec 02, 2021
by
Senthil Prabakaran
Committed by
Mouse
May 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Lint issues
parent
7c619357
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
352 deletions
+0
-352
skeletons/OCTET_STRING_jer.c
skeletons/OCTET_STRING_jer.c
+0
-322
skeletons/jer_encoder.c
skeletons/jer_encoder.c
+0
-30
No files found.
skeletons/OCTET_STRING_jer.c
View file @
ed774b9a
This diff is collapsed.
Click to expand it.
skeletons/jer_encoder.c
View file @
ed774b9a
...
...
@@ -17,7 +17,6 @@ jer_encode(const asn_TYPE_descriptor_t *td, const void *sptr,
asn_enc_rval_t
tmper
;
const
char
*
mname
;
size_t
mlen
;
int
xcan
=
0
;
if
(
!
td
||
!
sptr
)
goto
cb_failed
;
...
...
@@ -67,32 +66,3 @@ jer_fprint(FILE *stream, const asn_TYPE_descriptor_t *td, const void *sptr) {
return
fflush
(
stream
);
}
struct
jer_buffer
{
char
*
buffer
;
size_t
buffer_size
;
size_t
allocated_size
;
};
static
int
jer__buffer_append
(
const
void
*
buffer
,
size_t
size
,
void
*
app_key
)
{
struct
jer_buffer
*
xb
=
app_key
;
while
(
xb
->
buffer_size
+
size
+
1
>
xb
->
allocated_size
)
{
size_t
new_size
=
2
*
(
xb
->
allocated_size
?
xb
->
allocated_size
:
64
);
char
*
new_buf
=
MALLOC
(
new_size
);
if
(
!
new_buf
)
return
-
1
;
if
(
xb
->
buffer
)
{
memcpy
(
new_buf
,
xb
->
buffer
,
xb
->
buffer_size
);
}
FREEMEM
(
xb
->
buffer
);
xb
->
buffer
=
new_buf
;
xb
->
allocated_size
=
new_size
;
}
memcpy
(
xb
->
buffer
+
xb
->
buffer_size
,
buffer
,
size
);
xb
->
buffer_size
+=
size
;
xb
->
buffer
[
xb
->
buffer_size
]
=
'\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