-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Blob payload support + Add buffer metadata
Signed-off-by: Konstantin Ilichev <konstantin.ilichev@intel.com>
- Loading branch information
Showing
24 changed files
with
644 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* SPDX-FileCopyrightText: Copyright (c) 2025 Intel Corporation | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
#ifndef BUF_H | ||
#define BUF_H | ||
|
||
#include <cstdint> | ||
#include <cstddef> | ||
|
||
namespace mesh::connection { | ||
|
||
/** | ||
* Buffer partition definition structure | ||
*/ | ||
class BufferPartition { | ||
public: | ||
uint32_t size; | ||
uint32_t offset; | ||
}; | ||
|
||
/** | ||
* Buffer partitioning definition structure | ||
*/ | ||
class BufferPartitions { | ||
public: | ||
BufferPartition payload; | ||
BufferPartition metadata; | ||
BufferPartition sysdata; | ||
|
||
size_t total_size() const; | ||
}; | ||
|
||
/** | ||
* System data structure transmitted within every buffer | ||
*/ | ||
class BufferSysData { | ||
public: | ||
int64_t timestamp_ms; | ||
uint32_t seq; | ||
uint32_t payload_len; | ||
uint32_t metadata_len; | ||
}; | ||
|
||
} // namespace mesh::connection | ||
|
||
#endif // BUF_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* SPDX-FileCopyrightText: Copyright (c) 2025 Intel Corporation | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
#include "buf.h" | ||
|
||
namespace mesh::connection { | ||
|
||
size_t BufferPartitions::total_size() const { | ||
return payload.size + metadata.size + sysdata.size; | ||
} | ||
|
||
} // namespace mesh::connection |
Oops, something went wrong.