Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e056d37d
authored
Nov 27, 2014
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtapi_network_c: add clear function to buffer, changed input argument to push_rawdata to const
parent
ad97663c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
mtapi_network_c/src/embb_mtapi_network_buffer.c
+7
-1
mtapi_network_c/src/embb_mtapi_network_buffer.h
+5
-1
No files found.
mtapi_network_c/src/embb_mtapi_network_buffer.c
View file @
e056d37d
...
...
@@ -52,6 +52,12 @@ void embb_mtapi_network_buffer_finalize(
}
}
void
embb_mtapi_network_buffer_clear
(
embb_mtapi_network_buffer_t
*
that
)
{
that
->
position
=
0
;
that
->
size
=
0
;
}
int
embb_mtapi_network_buffer_push_back_int8
(
embb_mtapi_network_buffer_t
*
that
,
int8_t
value
)
{
...
...
@@ -88,7 +94,7 @@ int embb_mtapi_network_buffer_push_back_int32(
int
embb_mtapi_network_buffer_push_back_rawdata
(
embb_mtapi_network_buffer_t
*
that
,
int32_t
size
,
void
*
rawdata
)
{
void
const
*
rawdata
)
{
if
(
that
->
size
+
size
>
that
->
capacity
)
{
return
0
;
}
...
...
mtapi_network_c/src/embb_mtapi_network_buffer.h
View file @
e056d37d
...
...
@@ -52,6 +52,10 @@ void embb_mtapi_network_buffer_finalize(
embb_mtapi_network_buffer_t
*
that
);
void
embb_mtapi_network_buffer_clear
(
embb_mtapi_network_buffer_t
*
that
);
int
embb_mtapi_network_buffer_push_back_int8
(
embb_mtapi_network_buffer_t
*
that
,
int8_t
value
...
...
@@ -70,7 +74,7 @@ int embb_mtapi_network_buffer_push_back_int32(
int
embb_mtapi_network_buffer_push_back_rawdata
(
embb_mtapi_network_buffer_t
*
that
,
int32_t
size
,
void
*
rawdata
void
const
*
rawdata
);
int
embb_mtapi_network_buffer_pop_front_int8
(
...
...
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