protocol: add basic communicate protocol pack and unpack.

This commit is contained in:
2025-06-13 23:14:57 +08:00
parent 0ad2c34579
commit ff14e30d31
12 changed files with 1950 additions and 1 deletions

19
.clang-format Normal file
View File

@@ -0,0 +1,19 @@
BasedOnStyle: LLVM
IndentWidth: 4
PointerAlignment: Left
AccessModifierOffset: -4
ReflowComments: Always
SpacesBeforeTrailingComments: 3
AllowShortFunctionsOnASingleLine: None
BreakBeforeBraces: Custom
BraceWrapping:
AfterFunction: true
AfterClass: true
TabWidth: 4
ColumnLimit: 130
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<.*>'
Priority: 1
- Regex: '^".*"'
Priority: 2