renamed mc_sml_is_optional_skipped to
sml_buf_optional_is_skipped
This commit is contained in:
parent
19af19ebaa
commit
a20fbe0515
2 changed files with 3 additions and 3 deletions
|
@ -102,8 +102,8 @@ void sml_buf_optional_write(sml_buffer *buf);
|
|||
void sml_buf_update_bytes_read(sml_buffer *buf, int bytes);
|
||||
|
||||
// Checks if the next field is a skipped optional field, updates the buffer accordingly
|
||||
int mc_sml_is_optional_skipped(sml_buffer *buf);
|
||||
#define SML_SKIP_OPTIONAL (mc_sml_is_optional_skipped(buf)) ? 0 :
|
||||
int sml_buf_optional_is_skipped(sml_buffer *buf);
|
||||
#define SML_SKIP_OPTIONAL (sml_buf_optional_is_skipped(buf)) ? 0 :
|
||||
|
||||
void hexdump(unsigned char *buffer, size_t buffer_len);
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ void sml_buffer_free(sml_buffer *buf) {
|
|||
}
|
||||
}
|
||||
|
||||
int mc_sml_is_optional_skipped(sml_buffer *buf) {
|
||||
int sml_buf_optional_is_skipped(sml_buffer *buf) {
|
||||
if (sml_buf_get_current_byte(buf) == SML_OPTIONAL_SKIPPED) {
|
||||
sml_buf_update_bytes_read(buf, 1);
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue