-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f696b5
commit 68b4dfc
Showing
2 changed files
with
41 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,20 @@ on: | |
pull_request: | ||
branches: [ "master" ] | ||
|
||
env: | ||
# Path to the solution file relative to the root of the project. | ||
SOLUTION_FILE_PATH: . | ||
|
||
# Configuration type to build. | ||
# You can convert this to a build matrix if you need coverage of multiple configuration types. | ||
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
BUILD_CONFIGURATION: Debug | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
build-linux: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
|
@@ -23,3 +35,26 @@ jobs: | |
run: make | ||
- name: Running tests | ||
run: bin/Debug/Tests/Tests | ||
build-windows: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: abel0b/[email protected] | ||
with: | ||
version: "5.0.0-beta2" | ||
|
||
- name: Add MSBuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
# - name: Restore NuGet packages | ||
# working-directory: ${{env.GITHUB_WORKSPACE}} | ||
# run: nuget restore ${{env.SOLUTION_FILE_PATH}} | ||
- name: premake | ||
run: premake5 vs2022 | ||
- name: Build | ||
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
# Add additional options to the MSBuild command line here (like platform or verbosity level). | ||
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference | ||
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} |
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
# packet-master | ||
a serialization and deserialization library made in c | ||
|
||
This is has been a learning experience. It can serialize uint8_t and bool to their smallest representable way. | ||
This is has been a learning experience. It can serialize uint8_t uint16_t, and bool to their smallest representable way. | ||
|
||
for bool 1 bit | ||
for uint8_t 8 bits unless specified otherwise | ||
for uint16_t 9 or 17 bits unless specified otherwise 1 bit for the byte count stored | ||
## How is serialization done? | ||
* boolean value is 1 bit | ||
* uint8_t 8 bits unless specified otherwise | ||
* uint16_t can be stored as 1 or 2 bytes depending on the value and the byte count is stored as 1 bit | ||
planned to serialize and deserialize uint32_t |